aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sirit/sirit.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h
index 2eae6ab..c80555f 100644
--- a/include/sirit/sirit.h
+++ b/include/sirit/sirit.h
@@ -8,11 +8,11 @@
#include <array>
#include <cstdint>
+#include <functional>
#include <memory>
#include <optional>
#include <span>
#include <string>
-#include <functional>
#include <string_view>
#include <type_traits>
#include <unordered_set>
@@ -422,10 +422,17 @@ public:
Id OpUndef(Id result_type);
/// Emits the current values of all output variables to the current output primitive.
- Id OpEmitVertex();
+ void OpEmitVertex();
+
+ /// Finish the current primitive and start a new one. No vertex is emitted.
+ void OpEndPrimitive();
+
+ /// Emits the current values of all output variables to the current output primitive. After
+ /// execution, the values of all output variables are undefined.
+ void OpEmitStreamVertex(Id stream);
/// Finish the current primitive and start a new one. No vertex is emitted.
- Id OpEndPrimitive();
+ void OpEndStreamPrimitive(Id stream);
// Barrier