diff options
| author | Pankaj Mistry <63069047+pmistryNV@users.noreply.github.com> | 2023-12-19 15:00:04 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-19 15:00:04 -0800 |
| commit | be06998c5153f7f9731f3a322ede4cf9e58e4b3d (patch) | |
| tree | 95cc58b6f674e873cb6f7c2cdaa737d8e9c1da08 /source | |
| parent | 93b8f68b2e9ddc450ce63f1b6e1806960312d803 (diff) | |
Lower sv_vertexid to decoration VertexIndex as defined in GL_KHR_vulkan_glsl (#3419)
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 5939754e0..aa277cfba 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -3137,7 +3137,7 @@ struct SPIRVEmitContext } else if (semanticName == "sv_vertexid") { - return getBuiltinGlobalVar(inst->getFullType(), SpvBuiltInVertexId); + return getBuiltinGlobalVar(inst->getFullType(), SpvBuiltInVertexIndex); } else if (semanticName == "sv_viewid") { |
