triro 1.3.0
A Python Ray-Mesh Intersector in OptiX
Loading...
Searching...
No Matches
LaunchParams.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector_types.h>
4#include <optix_types.h>
5
6namespace hmesh {
7
8constexpr int MAX_ANYHIT_SIZE = 8;
9constexpr int MAX_SIZE_LENGTH = 4;
10
11struct RayInput {
12 // ray count
13 size_t nray;
14 // ray shape
16 // ray origins
17 float *origins;
18 // ray origins stride
20 // ray directions
21 float *directions;
22 // ray directions stride
24 // hit counts
26 // global index
28};
29
30struct LPResult {
31 float3 *location;
32 int *triIdx;
33 bool *hit;
34 bool *front;
35 float2 *uv;
37 int *rayIdx;
38};
39
40extern "C" struct LaunchParams {
41 // input ray info
43 // output buffer
45 // acceleration structure handle
46 OptixTraversableHandle traversable;
47};
48
49} // namespace hmesh
Definition base.cpp:13
constexpr int MAX_ANYHIT_SIZE
Definition LaunchParams.h:8
constexpr int MAX_SIZE_LENGTH
Definition LaunchParams.h:9
float3 * location
OptixTraversableHandle traversable
int64_t rayShape[MAX_SIZE_LENGTH]
int64_t directionsStride[MAX_SIZE_LENGTH]
int64_t originsStride[MAX_SIZE_LENGTH]