diff options
| author | ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> | 2024-04-01 13:42:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-01 10:42:32 -0700 |
| commit | 844a8d6274cb5e4927bf3241a94b2a9d9553df90 (patch) | |
| tree | dd42c7631a114d237fd59150e9c8e4ea39263849 /source | |
| parent | 75afa659e9a16589638083a1fcf9e879225619cd (diff) | |
Correctly emit spv extension targeting EXT rather than NV, added to test for this case (#3864)
CullPrimitive [follows capabilities to emit as per SPIR-V specification](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_capability)
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index ae7c9bcc8..36c9aa5f8 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -3815,7 +3815,7 @@ struct SPIRVEmitContext else if (semanticName == "sv_cullprimitive") { requireSPIRVCapability(SpvCapabilityMeshShadingEXT); - ensureExtensionDeclaration(UnownedStringSlice("SPV_NV_mesh_shader")); + ensureExtensionDeclaration(UnownedStringSlice("SPV_EXT_mesh_shader")); return getBuiltinGlobalVar(inst->getFullType(), SpvBuiltInCullPrimitiveEXT); } else if (semanticName == "sv_shadingrate") |
