diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-ir-glsl-legalize.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/slang/slang-ir-glsl-legalize.cpp b/source/slang/slang-ir-glsl-legalize.cpp index ae6521076..052b4fb29 100644 --- a/source/slang/slang-ir-glsl-legalize.cpp +++ b/source/slang/slang-ir-glsl-legalize.cpp @@ -324,6 +324,16 @@ GLSLSystemValueInfo* getGLSLSystemValueInfo( name = "gl_SampleMask[0]"; } } + else if(semanticName == "sv_innercoverage") + { + // uint in hlsl, bool in glsl + // https://www.khronos.org/registry/OpenGL/extensions/NV/NV_conservative_raster_underestimation.txt + + context->requireGLSLExtension(UnownedStringSlice::fromLiteral("GL_NV_conservative_raster_underestimation")); + + name = "gl_FragFullyCoveredNV"; + requiredType = builder->getBasicType(BaseType::Bool); + } else if(semanticName == "sv_depth") { // Float in hlsl & glsl |
