diff options
Diffstat (limited to 'source/slang/slang-emit-glsl.cpp')
| -rw-r--r-- | source/slang/slang-emit-glsl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-emit-glsl.cpp b/source/slang/slang-emit-glsl.cpp index 55f6d140c..d37a6840b 100644 --- a/source/slang/slang-emit-glsl.cpp +++ b/source/slang/slang-emit-glsl.cpp @@ -928,6 +928,14 @@ void GLSLSourceEmitter::_maybeEmitGLSLBuiltin(IRGlobalParam* var, UnownedStringS m_writer->emit(";\n\n"); } } + else if (name == "gl_ShadingRateEXT") + { + _requireGLSLExtension(toSlice("GL_EXT_fragment_shading_rate")); + } + else if (name == "gl_PrimitiveShadingRateEXT") + { + _requireGLSLExtension(toSlice("GL_EXT_fragment_shading_rate_primitive")); + } } void GLSLSourceEmitter::_requireBaseType(BaseType baseType) |
