summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-ir-glsl-legalize.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-ir-glsl-legalize.cpp b/source/slang/slang-ir-glsl-legalize.cpp
index eb101de86..ada34f220 100644
--- a/source/slang/slang-ir-glsl-legalize.cpp
+++ b/source/slang/slang-ir-glsl-legalize.cpp
@@ -627,6 +627,7 @@ GLSLSystemValueInfo* getGLSLSystemValueInfo(
name = "gl_InstanceIndex";
targetVarName = IRTargetBuiltinVarName::HlslInstanceID;
context->requireSPIRVVersion(SemanticVersion(1, 3));
+ context->requireGLSLVersion(ProfileVersion::GLSL_460);
context->requireGLSLExtension(toSlice("GL_ARB_shader_draw_parameters"));
}
else if (semanticName == "sv_isfrontface")