summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-spirv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
-rw-r--r--source/slang/slang-emit-spirv.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp
index 8219d3534..a32e904b7 100644
--- a/source/slang/slang-emit-spirv.cpp
+++ b/source/slang/slang-emit-spirv.cpp
@@ -2787,6 +2787,15 @@ struct SPIRVEmitContext
case kIROp_discard:
result = emitOpKill(parent, inst);
break;
+ case kIROp_BeginFragmentShaderInterlock:
+ ensureExtensionDeclaration(UnownedStringSlice("SPV_EXT_fragment_shader_interlock"));
+ requireSPIRVCapability(SpvCapabilityFragmentShaderPixelInterlockEXT);
+ emitOpExecutionMode(getSection(SpvLogicalSectionID::ExecutionModes), nullptr, getParentFunc(inst), SpvExecutionModePixelInterlockOrderedEXT);
+ result = emitOpBeginInvocationInterlockEXT(parent, inst);
+ break;
+ case kIROp_EndFragmentShaderInterlock:
+ result = emitOpEndInvocationInterlockEXT(parent, inst);
+ break;
case kIROp_unconditionalBranch:
{
// If we are jumping to the main block of a loop,