diff options
| author | Yong He <yonghe@outlook.com> | 2023-09-20 03:30:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-20 18:30:27 +0800 |
| commit | 73292d9f3a1c790f72802dfe4cce57a1353dece6 (patch) | |
| tree | b35764fca8962c808b64c2ceed8601e7f4fa1011 /source/slang/slang-ir.cpp | |
| parent | 739c3a7b53dc6489065fcd5e9f0a04370c5f9c8f (diff) | |
Direct SPIRV: Rasterization pipeline tests. (#3216)
* Direct SPIRV: Rasterization pipeline tests.
* Fixup.
* Fix.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index 6777c0b3a..a54bc1f2e 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -5797,6 +5797,18 @@ namespace Slang return i; } + IRSPIRVAsmOperand* IRBuilder::emitSPIRVAsmOperandEntryPoint() + { + SLANG_ASSERT(as<IRSPIRVAsm>(m_insertLoc.getParent())); + const auto i = createInst<IRSPIRVAsmOperand>( + this, + kIROp_SPIRVAsmOperandEntryPoint, + getVoidType() + ); + addInst(i); + return i; + } + IRSPIRVAsmInst* IRBuilder::emitSPIRVAsmInst(IRInst* opcode, List<IRInst*> operands) { SLANG_ASSERT(as<IRSPIRVAsm>(m_insertLoc.getParent())); |
