NTrace
GPU ray tracing framework
|
#include <cuda.h>
Go to the source code of this file.
Classes | |
struct | KernelConfig |
struct | OtraceInput |
struct | RayStruct |
Macros | |
#define | KDTREE_MASK 0xF0000000 |
#define | KDTREE_UNMASK 0x0FFFFFFF |
#define | KDTREE_LEAF 0xC0000000 |
#define | KDTREE_EMPTYLEAF 0x80000000 |
#define | KDTREE_DIMPOS 28 |
#define | TRACE_FUNC_KDTREE |
#define | TRACE_FUNC_BVH |
#define | FETCH_GLOBAL(NAME, IDX, TYPE) ((const TYPE*)NAME)[IDX] |
#define | FETCH_TEXTURE(NAME, IDX, TYPE) tex1Dfetch(t_ ## NAME, IDX) |
#define | STORE_RESULT(RAY, TRI, T, U, V) results[RAY] = make_int4(TRI, __float_as_int(T), __float_as_int(U), __float_as_int(V)) |
Enumerations | |
enum | { MaxBlockHeight = 6, EntrypointSentinel = 0x76543210 } |
enum | BVHLayout { BVHLayout_AOS_AOS = 0, BVHLayout_AOS_SOA, BVHLayout_SOA_AOS, BVHLayout_SOA_SOA, BVHLayout_Compact, BVHLayout_Compact2, BVHLayout_CPU, BVHLayout_Max } |
#define FETCH_GLOBAL | ( | NAME, | |
IDX, | |||
TYPE | |||
) | ((const TYPE*)NAME)[IDX] |
Definition at line 195 of file CudaTracerKernels.hpp.
#define FETCH_TEXTURE | ( | NAME, | |
IDX, | |||
TYPE | |||
) | tex1Dfetch(t_ ## NAME, IDX) |
Definition at line 196 of file CudaTracerKernels.hpp.
#define KDTREE_DIMPOS 28 |
Definition at line 46 of file CudaTracerKernels.hpp.
#define KDTREE_EMPTYLEAF 0x80000000 |
Definition at line 45 of file CudaTracerKernels.hpp.
#define KDTREE_LEAF 0xC0000000 |
Definition at line 44 of file CudaTracerKernels.hpp.
#define KDTREE_MASK 0xF0000000 |
Definition at line 42 of file CudaTracerKernels.hpp.
#define KDTREE_UNMASK 0x0FFFFFFF |
Definition at line 43 of file CudaTracerKernels.hpp.
#define STORE_RESULT | ( | RAY, | |
TRI, | |||
T, | |||
U, | |||
V | |||
) | results[RAY] = make_int4(TRI, __float_as_int(T), __float_as_int(U), __float_as_int(V)) |
Definition at line 198 of file CudaTracerKernels.hpp.
#define TRACE_FUNC_BVH |
Definition at line 99 of file CudaTracerKernels.hpp.
#define TRACE_FUNC_KDTREE |
Definition at line 81 of file CudaTracerKernels.hpp.
anonymous enum |
Enumerator | |
---|---|
MaxBlockHeight | |
EntrypointSentinel |
Definition at line 35 of file CudaTracerKernels.hpp.
enum BVHLayout |
Enumerator | |
---|---|
BVHLayout_AOS_AOS | |
BVHLayout_AOS_SOA | |
BVHLayout_SOA_AOS | |
BVHLayout_SOA_SOA | |
BVHLayout_Compact | |
BVHLayout_Compact2 | |
BVHLayout_CPU | |
BVHLayout_Max |
Definition at line 52 of file CudaTracerKernels.hpp.