|
|
|||
File indexing completed on 2026-04-09 07:49:42
0001 #pragma once 0002 /** 0003 SOPTIX_getPRD.h : unpackPointer from optixPayload 0004 ================================================== 0005 0006 An arbitrary payload is associated with each ray that is initialized with the optixTrace call. 0007 The payload is passed to all the IS, AH, CH and MS programs that are executed during this invocation of trace. 0008 The payload can be read and written by each program 0009 0010 Using unpackPointer from "scuda_pointer.h" via SOPTIX.cu 0011 0012 **/ 0013 0014 0015 template<typename T> static __forceinline__ __device__ T * SOPTIX_getPRD() 0016 { 0017 const uint32_t u0 = optixGetPayload_0(); 0018 const uint32_t u1 = optixGetPayload_1(); 0019 return reinterpret_cast<T*>( unpackPointer( u0, u1 ) ); 0020 } 0021
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|