mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-03-20 11:11:03 +01:00
Add OpDemoteToHelperInvocation, OpTerminateInvocation
This commit is contained in:
2
externals/SPIRV-Headers
vendored
2
externals/SPIRV-Headers
vendored
Submodule externals/SPIRV-Headers updated: a3fdfe8146...c214f6f2d1
@@ -309,12 +309,16 @@ public:
|
||||
/// Return a value from a function.
|
||||
Id OpReturnValue(Id value);
|
||||
|
||||
/// Fragment-shader discard.
|
||||
/// Deprecated fragment-shader discard.
|
||||
void OpKill();
|
||||
|
||||
/// Demote fragment shader invocation to a helper invocation
|
||||
void OpDemoteToHelperInvocation();
|
||||
void OpDemoteToHelperInvocationEXT();
|
||||
|
||||
/// Fragment-shader discard.
|
||||
void OpTerminateInvocation();
|
||||
|
||||
// Debug
|
||||
|
||||
/// Assign a name string to a reference.
|
||||
|
||||
@@ -92,9 +92,18 @@ void Module::OpKill() {
|
||||
*code << spv::Op::OpKill << EndOp{};
|
||||
}
|
||||
|
||||
void Module::OpDemoteToHelperInvocationEXT() {
|
||||
void Module::OpDemoteToHelperInvocation() {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user