From fbf00dd54d787c6e22b0f1785a64dfb2fb1e300a Mon Sep 17 00:00:00 2001 From: "Nathan V. Morrical" Date: Tue, 25 May 2021 11:06:54 -0600 Subject: 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 --- source/slang/slang-emit-cuda.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/slang/slang-emit-cuda.cpp') 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; } -- cgit v1.2.3