diff options
author | ReinUsesLisp <[email protected]> | 2021-04-12 03:55:25 -0300 |
---|---|---|
committer | ReinUsesLisp <[email protected]> | 2021-04-12 03:55:25 -0300 |
commit | da093a04fe7cdf41b608cf4563fcc727c64d2749 (patch) | |
tree | 7a885a16ae1388337a7473c1478a7ebfdbd2679f /include | |
parent | dc47faf89f93b718f56d8e9fd3ff7de543349f7e (diff) | |
download | sirit-da093a04fe7cdf41b608cf4563fcc727c64d2749.tar.gz sirit-da093a04fe7cdf41b608cf4563fcc727c64d2749.zip |
Add OpEmitStreamVertex and OpEndStreamPrimitive
Diffstat (limited to 'include')
-rw-r--r-- | include/sirit/sirit.h | 13 |
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 |