diff options
author | alan-baker <alanbaker@google.com> | 2020-07-21 02:15:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 00:15:13 -0600 |
commit | 979924c8bc839e4cb1b69d03d48398551f369ce7 (patch) | |
tree | 7c3e4f6faf3e58b7c5b2c4666394fc1139b4b573 /include/spirv/unified1/spirv.h | |
parent | 7f2ae1193ad821fc55c30cf3e7f8fc1536eeec1f (diff) | |
download | SPIRV-Headers-979924c8bc839e4cb1b69d03d48398551f369ce7.tar.gz |
Support SPV_KHR_terminate_invocation (#163)
* Support SPV_KHR_terminate_invocation
* Fix order in spirv.core.grammar.json
Co-authored-by: David Neto <dneto@google.com>
Diffstat (limited to 'include/spirv/unified1/spirv.h')
-rw-r--r-- | include/spirv/unified1/spirv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/spirv/unified1/spirv.h b/include/spirv/unified1/spirv.h index 25db3b8..1e999f2 100644 --- a/include/spirv/unified1/spirv.h +++ b/include/spirv/unified1/spirv.h @@ -1373,6 +1373,7 @@ typedef enum SpvOp_ { SpvOpPtrEqual = 401, SpvOpPtrNotEqual = 402, SpvOpPtrDiff = 403, + SpvOpTerminateInvocation = 4416, SpvOpSubgroupBallotKHR = 4421, SpvOpSubgroupFirstInvocationKHR = 4422, SpvOpSubgroupAllKHR = 4428, @@ -1945,6 +1946,7 @@ inline void SpvHasResultAndType(SpvOp opcode, bool *hasResult, bool *hasResultTy case SpvOpPtrDiff: *hasResult = true; *hasResultType = true; break; case SpvOpSubgroupBallotKHR: *hasResult = true; *hasResultType = true; break; case SpvOpSubgroupFirstInvocationKHR: *hasResult = true; *hasResultType = true; break; + case SpvOpTerminateInvocation: *hasResult = false; *hasResultType = false; break; case SpvOpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break; case SpvOpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break; case SpvOpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break; |