|
HDK
|
#include <CE_BVH.h>
Classes | |
| struct | ceBVHNode |
| struct | cebvhvec3 |
Public Types | |
| enum | PrimType { PrimType::TRI, PrimType::QUAD, PrimType::TET } |
Public Member Functions | |
| CE_BVH () | |
| ~CE_BVH () | |
| void | build (const CE_Int32Array &trisingrp, const cl::Buffer &primptsidx, const cl::Buffer &primpts, const cl::Buffer &P, PrimType primtype=PrimType::TRI, bool refitTets=true) |
| void | refit (const CE_Int32Array &trisingrp, const cl::Buffer &primptsidx, const cl::Buffer &primpts, const cl::Buffer &P) |
| void | clear () |
| bool | isBuilt () const |
| const cl::Buffer & | nodeBuffer () const |
| const cl::Buffer & | verticesBuffer () const |
| const cl::Buffer & | primIdxBuffer () const |
Protected Member Functions | |
| void | updateVertices (const CE_Int32Array &tris, const cl::Buffer &primptsidx, const cl::Buffer &primpts, const cl::Buffer &P) |
| void | buildDepthIndex (bool reverse=true) |
| struct | __attribute__ ((aligned(16))) cebvhvec4 |
Protected Attributes | |
| tinybvh::BVH_GPU * | myBVH |
| CE_BufferDevice< ceBVHNode > | myBVHNodes |
| CE_BufferDevice< cebvhvec4 > | myVertices |
| CE_UInt32Array | myPrimIdx |
| UT_IntArray | myDepthCounts |
| CE_Int32Array | mySingleDepthCounts |
| CE_Int32Array | mySingleDepthOffsets |
| CE_Int32Array | myDepthIndex |
| cl::NDRange | myRefitRange |
| PrimType | myPrimType |
|
strong |
| CE_BVH::CE_BVH | ( | ) |
| CE_BVH::~CE_BVH | ( | ) |
|
inlineprotected |
| void CE_BVH::build | ( | const CE_Int32Array & | trisingrp, |
| const cl::Buffer & | primptsidx, | ||
| const cl::Buffer & | primpts, | ||
| const cl::Buffer & | P, | ||
| PrimType | primtype = PrimType::TRI, |
||
| bool | refitTets = true |
||
| ) |
|
protected |
| void CE_BVH::clear | ( | ) |
| bool CE_BVH::isBuilt | ( | ) | const |
|
inline |
|
inline |
| void CE_BVH::refit | ( | const CE_Int32Array & | trisingrp, |
| const cl::Buffer & | primptsidx, | ||
| const cl::Buffer & | primpts, | ||
| const cl::Buffer & | P | ||
| ) |
|
protected |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |