File indexing completed on 2026-04-09 07:49:42
0001 #pragma once
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include <optix.h>
0012
0013
0014 template <typename T>
0015 struct SOPTIX_Record
0016 {
0017 __align__( OPTIX_SBT_RECORD_ALIGNMENT ) char header[OPTIX_SBT_RECORD_HEADER_SIZE];
0018 T data;
0019 };
0020
0021
0022 struct SOPTIX_RaygenData {} ;
0023
0024 struct SOPTIX_MissData
0025 {
0026 float3 bg_color;
0027 };
0028
0029 struct SOPTIX_TriMesh
0030 {
0031 uint3* indice ;
0032 float3* vertex ;
0033 float3* normal ;
0034 };
0035
0036 struct SOPTIX_HitgroupData
0037 {
0038 SOPTIX_TriMesh mesh ;
0039 };
0040
0041
0042 typedef SOPTIX_Record<SOPTIX_RaygenData> SOPTIX_RaygenRecord;
0043 typedef SOPTIX_Record<SOPTIX_MissData> SOPTIX_MissRecord;
0044 typedef SOPTIX_Record<SOPTIX_HitgroupData> SOPTIX_HitgroupRecord;
0045
0046