|
triro 1.3.0
A Python Ray-Mesh Intersector in OptiX
|
Classes | |
| struct | CUDABuffer |
| struct | LaunchParams |
| struct | LPResult |
| struct | OptixAccelStructureWrapperCPP |
| struct | RayInput |
| struct | vec |
Typedefs | |
| using | vec2i = vec< int32_t, 2 > |
| using | vec2f = vec< float, 2 > |
| using | vec3i = vec< int32_t, 3 > |
| using | vec3f = vec< float, 3 > |
Functions | |
| void | initOptix () |
| void | createOptixContext () |
| void | createOptixModule () |
| void | createPipelines () |
| void | buildSBT () |
| torch::Tensor | intersectsAny (OptixAccelStructureWrapperCPP as, const torch::Tensor &origins, const torch::Tensor &dirs) |
| torch::Tensor | intersectsFirst (OptixAccelStructureWrapperCPP as, const torch::Tensor &origins, const torch::Tensor &dirs) |
| std::tuple< torch::Tensor, torch::Tensor, torch::Tensor, torch::Tensor, torch::Tensor > | intersectsClosest (OptixAccelStructureWrapperCPP as, torch::Tensor origins, torch::Tensor directions) |
| Find if ray hits any triangle and return ray index, triangle index, hit location and uv. | |
| torch::Tensor | intersectsCount (OptixAccelStructureWrapperCPP as, torch::Tensor origins, torch::Tensor directions) |
| std::tuple< torch::Tensor, torch::Tensor, torch::Tensor > | intersectsLocation (OptixAccelStructureWrapperCPP as, torch::Tensor origins, torch::Tensor directions) |
| template<typename... Ts> | |
| bool | tensorInputCheck (Ts... ts) |
| std::vector< int64_t > | removeLastDim (const c10::IntArrayRef dims) |
| size_t | prod (const std::vector< int64_t > &dims) |
| std::vector< int64_t > | changeLastDim (const c10::IntArrayRef dims, size_t value) |
| template<typename T > | |
| T * | data_ptr (const torch::Tensor &t) |
| template<typename T > | |
| void | fillArray (T *dst, c10::ArrayRef< T > src, T defaultValue) |
Variables | |
| CUcontext | cuCtx |
| CUstream | cuStream |
| OptixDeviceContext | optixContext |
| OptixModule | optixModule |
| OptixPipelineCompileOptions | pipelineCompileOptions = {} |
| OptixShaderBindingTable | sbts [SBTType::count] |
| OptixPipeline | optixPipelines [SBTType::count] |
| OptixProgramGroup | optixProgramGroups [SBTType::count][3] |
| constexpr int | MAX_ANYHIT_SIZE = 8 |
| constexpr int | MAX_SIZE_LENGTH = 4 |
| using hmesh::vec2f = typedef vec<float, 2> |
| using hmesh::vec2i = typedef vec<int32_t, 2> |
| using hmesh::vec3f = typedef vec<float, 3> |
| using hmesh::vec3i = typedef vec<int32_t, 3> |
|
inline |
|
inline |
| void hmesh::fillArray | ( | T * | dst, |
| c10::ArrayRef< T > | src, | ||
| T | defaultValue | ||
| ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
inline |
|
inline |
|
inline |
|
constexpr |
Definition at line 8 of file LaunchParams.h.
|
constexpr |
Definition at line 9 of file LaunchParams.h.
| OptixProgramGroup hmesh::optixProgramGroups[SBTType::count][3] |
| OptixPipelineCompileOptions hmesh::pipelineCompileOptions = {} |