summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-spirv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
-rw-r--r--source/slang/slang-emit-spirv.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp
index 1db323993..4f7410f00 100644
--- a/source/slang/slang-emit-spirv.cpp
+++ b/source/slang/slang-emit-spirv.cpp
@@ -3535,6 +3535,15 @@ struct SPIRVEmitContext
(IRInterpolationMode)getIntVal(decoration->getOperand(0)),
dstID);
break;
+ case kIROp_PerVertexDecoration:
+ ensureExtensionDeclaration(UnownedStringSlice("SPV_KHR_fragment_shader_barycentric"));
+ requireSPIRVCapability(SpvCapabilityFragmentBarycentricKHR);
+ emitOpDecorate(
+ getSection(SpvLogicalSectionID::Annotations),
+ decoration,
+ dstID,
+ SpvDecorationPerVertexKHR);
+ break;
case kIROp_MemoryQualifierSetDecoration:
{
auto collection = as<IRMemoryQualifierSetDecoration>(decoration);