diff options
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index 51a71d65c..1a4d80ae1 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -2230,6 +2230,16 @@ struct SPIRVEmitContext isDescirptorSetDecorated = true; } break; + case LayoutResourceKind::InputAttachmentIndex: + { + emitOpDecorateInputAttachmentIndex( + getSection(SpvLogicalSectionID::Annotations), + nullptr, + varInst, + SpvLiteralInteger::from32((int32_t)index) + ); + } + break; default: break; } @@ -3576,17 +3586,6 @@ struct SPIRVEmitContext ); } break; - case kIROp_GLSLInputAttachmentIndexDecoration: - { - const auto c = cast<IRGLSLInputAttachmentIndexDecoration>(decoration); - emitOpDecorateInputAttachmentIndex( - getSection(SpvLogicalSectionID::Annotations), - decoration, - dstID, - SpvLiteralInteger::from32(int32_t(c->getIndex()->getValue())) - ); - } - break; case kIROp_VulkanHitAttributesDecoration: case kIROp_VulkanCallablePayloadDecoration: |
