From ebfbe5886f273e0492321c5ff0c9c2671583a648 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 9 Dec 2024 04:48:28 -0800 Subject: Add SV_DrawIndex. (#5787) Co-authored-by: Ellie Hermaszewska --- source/slang/slang-emit-glsl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/slang/slang-emit-glsl.cpp') diff --git a/source/slang/slang-emit-glsl.cpp b/source/slang/slang-emit-glsl.cpp index 6c525d064..f22419147 100644 --- a/source/slang/slang-emit-glsl.cpp +++ b/source/slang/slang-emit-glsl.cpp @@ -1127,6 +1127,10 @@ void GLSLSourceEmitter::_maybeEmitGLSLBuiltin(IRGlobalParam* var, UnownedStringS { _requireGLSLExtension(toSlice("GL_EXT_fragment_shading_rate_primitive")); } + else if (name == "gl_DrawID") + { + _requireGLSLVersion(460); + } } void GLSLSourceEmitter::_requireBaseType(BaseType baseType) -- cgit v1.2.3