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
6
namespace
hmesh
{
7
8
constexpr
int
MAX_ANYHIT_SIZE
= 8;
9
constexpr
int
MAX_SIZE_LENGTH
= 4;
10
11
struct
RayInput
{
12
// ray count
13
size_t
nray
;
14
// ray shape
15
int64_t
rayShape
[
MAX_SIZE_LENGTH
];
16
// ray origins
17
float
*
origins
;
18
// ray origins stride
19
int64_t
originsStride
[
MAX_SIZE_LENGTH
];
20
// ray directions
21
float
*
directions
;
22
// ray directions stride
23
int64_t
directionsStride
[
MAX_SIZE_LENGTH
];
24
// hit counts
25
int
*
hitCounts
;
26
// global index
27
int
*
globalIdx
;
28
};
29
30
struct
LPResult
{
31
float3 *
location
;
32
int
*
triIdx
;
33
bool
*
hit
;
34
bool
*
front
;
35
float2 *
uv
;
36
int
*
hitCount
;
37
int
*
rayIdx
;
38
};
39
40
extern
"C"
struct
LaunchParams
{
41
// input ray info
42
RayInput
rays
;
43
// output buffer
44
LPResult
results
;
45
// acceleration structure handle
46
OptixTraversableHandle
traversable
;
47
};
48
49
}
// namespace hmesh
hmesh
Definition
base.cpp:13
hmesh::MAX_ANYHIT_SIZE
constexpr int MAX_ANYHIT_SIZE
Definition
LaunchParams.h:8
hmesh::MAX_SIZE_LENGTH
constexpr int MAX_SIZE_LENGTH
Definition
LaunchParams.h:9
hmesh::LPResult
Definition
LaunchParams.h:30
hmesh::LPResult::rayIdx
int * rayIdx
Definition
LaunchParams.h:37
hmesh::LPResult::front
bool * front
Definition
LaunchParams.h:34
hmesh::LPResult::hit
bool * hit
Definition
LaunchParams.h:33
hmesh::LPResult::uv
float2 * uv
Definition
LaunchParams.h:35
hmesh::LPResult::hitCount
int * hitCount
Definition
LaunchParams.h:36
hmesh::LPResult::location
float3 * location
Definition
LaunchParams.h:31
hmesh::LPResult::triIdx
int * triIdx
Definition
LaunchParams.h:32
hmesh::LaunchParams
Definition
LaunchParams.h:40
hmesh::LaunchParams::rays
RayInput rays
Definition
LaunchParams.h:42
hmesh::LaunchParams::results
LPResult results
Definition
LaunchParams.h:44
hmesh::LaunchParams::traversable
OptixTraversableHandle traversable
Definition
LaunchParams.h:46
hmesh::RayInput
Definition
LaunchParams.h:11
hmesh::RayInput::hitCounts
int * hitCounts
Definition
LaunchParams.h:25
hmesh::RayInput::globalIdx
int * globalIdx
Definition
LaunchParams.h:27
hmesh::RayInput::rayShape
int64_t rayShape[MAX_SIZE_LENGTH]
Definition
LaunchParams.h:15
hmesh::RayInput::directions
float * directions
Definition
LaunchParams.h:21
hmesh::RayInput::directionsStride
int64_t directionsStride[MAX_SIZE_LENGTH]
Definition
LaunchParams.h:23
hmesh::RayInput::origins
float * origins
Definition
LaunchParams.h:17
hmesh::RayInput::nray
size_t nray
Definition
LaunchParams.h:13
hmesh::RayInput::originsStride
int64_t originsStride[MAX_SIZE_LENGTH]
Definition
LaunchParams.h:19
triro
backend
LaunchParams.h
Generated by
1.9.8