diff options
Diffstat (limited to 'source/slang/slang-emit-glsl.cpp')
| -rw-r--r-- | source/slang/slang-emit-glsl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-emit-glsl.cpp b/source/slang/slang-emit-glsl.cpp index d13bc96d1..936dc15ff 100644 --- a/source/slang/slang-emit-glsl.cpp +++ b/source/slang/slang-emit-glsl.cpp @@ -2755,6 +2755,11 @@ void GLSLSourceEmitter::emitVarDecorationsImpl(IRInst* varDecl) { prefix = toSlice("hitAttribute"); } + else if (as<IRPerVertexDecoration>(decoration)) + { + _requireGLSLExtension(toSlice("GL_EXT_fragment_shader_barycentric")); + prefix = toSlice("pervertex"); + } else { IRIntegerValue locationValue = -1; |
