diff options
| author | Nathan V. Morrical <natemorrical@gmail.com> | 2021-05-25 11:06:54 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-25 10:06:54 -0700 |
| commit | fbf00dd54d787c6e22b0f1785a64dfb2fb1e300a (patch) | |
| tree | dd7e6f32eea789e3288dc8a937e92f256ea0b8e9 /source/slang/slang-emit-cuda.cpp | |
| parent | 34a1ff5226a526cc17c5baecd63637f69c324fc7 (diff) | |
OptiX ray payload read/write support in raytracing pipeline shaders (#1853)
* OptiX ray payload can now be read from and written to using the two payload register pointer method
* changing op to more descriptive name
* fixup: comment change to re-trigger CI
Co-authored-by: T. Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-emit-cuda.cpp')
| -rw-r--r-- | source/slang/slang-emit-cuda.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-emit-cuda.cpp b/source/slang/slang-emit-cuda.cpp index 09ea7ef9e..4c430cfa6 100644 --- a/source/slang/slang-emit-cuda.cpp +++ b/source/slang/slang-emit-cuda.cpp @@ -781,6 +781,13 @@ bool CUDASourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOu m_writer->emit(")"); return true; } + case kIROp_GetOptiXRayPayloadPtr: + { + m_writer->emit("("); + emitType(inst->getDataType()); + m_writer->emit(")getOptiXRayPayloadPtr()"); + return true; + } default: break; } |
