NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::CudaNoStructTracer Class Reference

#include <CudaPersistentTracer.hpp>

Public Member Functions

 CudaNoStructTracer (MiniMax::Scene &scene, F32 epsilon)
 
F32 traceBatch (RayBuffer &rays)
 
F32 buildBVH (bool sbvh)
 
F32 buildKdtree ()
 
F32 traceBatchBVH (RayBuffer &rays, RayStats *stats=NULL)
 
F32 traceBatchKdtree (RayBuffer &rays, RayStats *stats=NULL)
 
F32 traceOnDemandBVH (RayBuffer &rays, bool rebuild, int numRays=0)
 
F32 traceOnDemandKdtree (RayBuffer &rays, bool rebuild, int numRays=0)
 
void traceOnDemandTrace (RayBuffer &rays, F32 &GPUmegakernel, F32 &CPUmegakernel, F32 &GPUtravKernel, F32 &CPUtravKernel, int &buildNodes, RayStats *stats=NULL)
 
F32 test ()
 
F32 convertWoop ()
 
void resetBuffers (bool resetADSBuffers)
 
void trimBVHBuffers ()
 
void trimKdtreeBuffers ()
 
F32 getCPUTime ()
 
F32 getGPUTime ()
 
void getStats (U32 &nodes, U32 &leaves, U32 &emptyLeaves, U32 &stackTop, U32 &nodeTop, U32 &tris, U32 &sortedTris, bool sub=true)
 
void getSizes (F32 &task, F32 &split, F32 &ads, F32 &tri, F32 &triIdx, F32 &heap)
 
S32 getNumLights ()
 
Buffer & getTriangleBuffer ()
 
Buffer & getTriangleNormalBuffer ()
 
Buffer & getTriangleOutBuffer ()
 
Buffer & getTriangleIndexOutBuffer ()
 
Buffer & getNodeBuffer ()
 
Buffer & getMaterialsBuffer ()
 
Buffer & getLightBuffer ()
 
Buffer & getShadingNormalsBuffer ()
 
Buffer & getShadedColorBuffer ()
 
Buffer & getMaterialColorBuffer ()
 
Buffer & getTextureCoordsBuffer ()
 

Detailed Description

Definition at line 20 of file CudaPersistentTracer.hpp.

Constructor & Destructor Documentation

CudaNoStructTracer::CudaNoStructTracer ( MiniMax::Scene &  scene,
F32  epsilon 
)

Definition at line 21 of file CudaPersistentTracer.cpp.

Member Function Documentation

F32 CudaNoStructTracer::buildBVH ( bool  sbvh)

Definition at line 245 of file CudaPersistentTracer.cpp.

F32 CudaNoStructTracer::buildKdtree ( )

Definition at line 476 of file CudaPersistentTracer.cpp.

F32 CudaNoStructTracer::convertWoop ( )

Definition at line 3881 of file CudaPersistentTracer.cpp.

F32 FW::CudaNoStructTracer::getCPUTime ( )
inline

Definition at line 132 of file CudaPersistentTracer.hpp.

F32 FW::CudaNoStructTracer::getGPUTime ( )
inline

Definition at line 133 of file CudaPersistentTracer.hpp.

Buffer& FW::CudaNoStructTracer::getLightBuffer ( )
inline

Definition at line 145 of file CudaPersistentTracer.hpp.

Buffer& FW::CudaNoStructTracer::getMaterialColorBuffer ( )
inline

Definition at line 148 of file CudaPersistentTracer.hpp.

Buffer& FW::CudaNoStructTracer::getMaterialsBuffer ( )
inline

Definition at line 144 of file CudaPersistentTracer.hpp.

Buffer& FW::CudaNoStructTracer::getNodeBuffer ( void  )
inline

Definition at line 143 of file CudaPersistentTracer.hpp.

S32 FW::CudaNoStructTracer::getNumLights ( )
inline

Definition at line 137 of file CudaPersistentTracer.hpp.

Buffer& FW::CudaNoStructTracer::getShadedColorBuffer ( )
inline

Definition at line 147 of file CudaPersistentTracer.hpp.

Buffer& FW::CudaNoStructTracer::getShadingNormalsBuffer ( )
inline

Definition at line 146 of file CudaPersistentTracer.hpp.

void CudaNoStructTracer::getSizes ( F32 &  task,
F32 &  split,
F32 &  ads,
F32 &  tri,
F32 &  triIdx,
F32 &  heap 
)

Definition at line 4041 of file CudaPersistentTracer.cpp.

void CudaNoStructTracer::getStats ( U32 &  nodes,
U32 &  leaves,
U32 &  emptyLeaves,
U32 &  stackTop,
U32 &  nodeTop,
U32 &  tris,
U32 &  sortedTris,
bool  sub = true 
)

Definition at line 3983 of file CudaPersistentTracer.cpp.

Buffer& FW::CudaNoStructTracer::getTextureCoordsBuffer ( )
inline

Definition at line 149 of file CudaPersistentTracer.hpp.

Buffer& FW::CudaNoStructTracer::getTriangleBuffer ( )
inline

Definition at line 139 of file CudaPersistentTracer.hpp.

Buffer& FW::CudaNoStructTracer::getTriangleIndexOutBuffer ( )
inline

Definition at line 142 of file CudaPersistentTracer.hpp.

Buffer& FW::CudaNoStructTracer::getTriangleNormalBuffer ( )
inline

Definition at line 140 of file CudaPersistentTracer.hpp.

Buffer& FW::CudaNoStructTracer::getTriangleOutBuffer ( )
inline

Definition at line 141 of file CudaPersistentTracer.hpp.

void CudaNoStructTracer::resetBuffers ( bool  resetADSBuffers)

Definition at line 3901 of file CudaPersistentTracer.cpp.

F32 CudaNoStructTracer::test ( )

Definition at line 994 of file CudaPersistentTracer.cpp.

F32 CudaNoStructTracer::traceBatch ( RayBuffer &  rays)

Definition at line 137 of file CudaPersistentTracer.cpp.

F32 CudaNoStructTracer::traceBatchBVH ( RayBuffer &  rays,
RayStats *  stats = NULL 
)

Definition at line 337 of file CudaPersistentTracer.cpp.

F32 CudaNoStructTracer::traceBatchKdtree ( RayBuffer &  rays,
RayStats *  stats = NULL 
)

Definition at line 574 of file CudaPersistentTracer.cpp.

F32 CudaNoStructTracer::traceOnDemandBVH ( RayBuffer &  rays,
bool  rebuild,
int  numRays = 0 
)

Definition at line 719 of file CudaPersistentTracer.cpp.

F32 CudaNoStructTracer::traceOnDemandKdtree ( RayBuffer &  rays,
bool  rebuild,
int  numRays = 0 
)

Definition at line 777 of file CudaPersistentTracer.cpp.

void CudaNoStructTracer::traceOnDemandTrace ( RayBuffer &  rays,
F32 &  GPUmegakernel,
F32 &  CPUmegakernel,
F32 &  GPUtravKernel,
F32 &  CPUtravKernel,
int &  buildNodes,
RayStats *  stats = NULL 
)

Definition at line 856 of file CudaPersistentTracer.cpp.

void CudaNoStructTracer::trimBVHBuffers ( )

Definition at line 3926 of file CudaPersistentTracer.cpp.

void CudaNoStructTracer::trimKdtreeBuffers ( )

Definition at line 3948 of file CudaPersistentTracer.cpp.


The documentation for this class was generated from the following files: