diff options
| author | Yong He <yonghe@outlook.com> | 2024-05-16 10:43:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-16 10:43:49 -0700 |
| commit | 725735a87b9d223c2afc83bbd049055b1e44a976 (patch) | |
| tree | 225f381774fb9b5209007ae7fc455a14f57a6fe6 /source/slang/slang-emit-spirv.cpp | |
| parent | 0a6180299352d7a2ec850004564c7a95b37a41c4 (diff) | |
RasterizerOrder resource for spirv and metal. (#4175)
* RasterizerOrder resource for spirv and metal.
Also fixes the byte address buffer logic for metal.
* Fix.
* Delete commented lines.
---------
Co-authored-by: Jay Kwak <82421531+jkwak-work@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 9 |
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, |
