mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2024-12-22 12:12:05 +00:00
Add OpDemoteToHelperInvocation, OpTerminateInvocation
This commit is contained in:
parent
661499f6ec
commit
d7ad93a888
3 changed files with 17 additions and 4 deletions
2
externals/SPIRV-Headers
vendored
2
externals/SPIRV-Headers
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit a3fdfe81465d57efc97cfd28ac6c8190fb31a6c8
|
Subproject commit c214f6f2d1a7253bb0e9f195c2dc5b0659dc99ef
|
|
@ -309,12 +309,16 @@ public:
|
||||||
/// Return a value from a function.
|
/// Return a value from a function.
|
||||||
Id OpReturnValue(Id value);
|
Id OpReturnValue(Id value);
|
||||||
|
|
||||||
/// Fragment-shader discard.
|
/// Deprecated fragment-shader discard.
|
||||||
void OpKill();
|
void OpKill();
|
||||||
|
|
||||||
/// Demote fragment shader invocation to a helper invocation
|
/// Demote fragment shader invocation to a helper invocation
|
||||||
|
void OpDemoteToHelperInvocation();
|
||||||
void OpDemoteToHelperInvocationEXT();
|
void OpDemoteToHelperInvocationEXT();
|
||||||
|
|
||||||
|
/// Fragment-shader discard.
|
||||||
|
void OpTerminateInvocation();
|
||||||
|
|
||||||
// Debug
|
// Debug
|
||||||
|
|
||||||
/// Assign a name string to a reference.
|
/// Assign a name string to a reference.
|
||||||
|
|
|
@ -92,9 +92,18 @@ void Module::OpKill() {
|
||||||
*code << spv::Op::OpKill << EndOp{};
|
*code << spv::Op::OpKill << EndOp{};
|
||||||
}
|
}
|
||||||
|
|
||||||
void Module::OpDemoteToHelperInvocationEXT() {
|
void Module::OpDemoteToHelperInvocation() {
|
||||||
code->Reserve(1);
|
code->Reserve(1);
|
||||||
*code << spv::Op::OpDemoteToHelperInvocationEXT << EndOp{};
|
*code << spv::Op::OpDemoteToHelperInvocation << EndOp{};
|
||||||
|
}
|
||||||
|
|
||||||
|
void Module::OpDemoteToHelperInvocationEXT() {
|
||||||
|
OpDemoteToHelperInvocation();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Module::OpTerminateInvocation() {
|
||||||
|
code->Reserve(1);
|
||||||
|
*code << spv::Op::OpTerminateInvocation << EndOp{};
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Sirit
|
} // namespace Sirit
|
||||||
|
|
Loading…
Reference in a new issue