diff options
| author | Mukund Keshava <mkeshava@nvidia.com> | 2025-05-16 21:00:53 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-16 18:30:53 +0300 |
| commit | 1fd7b2296d8360c245a0c732e7f842876533f92a (patch) | |
| tree | 942ea20a3713f98280008d76fbba6a85a5ad6062 /source/slang/slang-emit-cpp.cpp | |
| parent | b39ec87cccaadebbb9325dd2adb8c0b13b364805 (diff) | |
Fix RWStructuredBuffer emission (#7139)
Fixes #7127
Diffstat (limited to 'source/slang/slang-emit-cpp.cpp')
| -rw-r--r-- | source/slang/slang-emit-cpp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp index bfc021677..6f97a11da 100644 --- a/source/slang/slang-emit-cpp.cpp +++ b/source/slang/slang-emit-cpp.cpp @@ -1547,9 +1547,10 @@ bool CPPSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOut auto base = inst->getOperand(0); auto outerPrec = getInfo(EmitOp::General); emitOperand(base, outerPrec); + m_writer->emit(")"); m_writer->emit("["); emitOperand(inst->getOperand(1), EmitOpInfo()); - m_writer->emit("]))"); + m_writer->emit("])"); return true; } case kIROp_swizzle: |
