16 m_compiler.
include(
"src/framework");
Buffer & getTriMaterialColorBuffer(void)
Returns material color buffer.
virtual bool nextBatch(void)
virtual void setParams(const Params ¶ms)
S32 getSize() const
Gets size of the buffer (number of rays).
virtual ~CudaRenderer(void)
void include(const String &path)
CudaModule * compile(bool enablePrints=true, bool autoFail=true)
CUdevice int ordinal char int CUdevice dev CUdevprop CUdevice dev CUcontext ctx CUcontext ctx CUcontext pctx CUmodule * module
Buffer & getIDToSlotBuffer()
Gets buffer mapping ids to slots.
F32 traceBatch(RayBuffer &rays)
Traces given batch of rays.
bool ao(RayBuffer &orays, RayBuffer &irays, Scene &scene, int numSamples, float maxDist, bool &newBatch, U32 randomSeed=0)
Generates ao rays on the GPU. Batches rays if necessary.
CUdevice int ordinal char int CUdevice dev CUdevprop CUdevice dev CUcontext ctx CUcontext ctx CUcontext pctx CUmodule const void image CUmodule const void fatCubin CUfunction CUmodule const char name void p CUfunction unsigned int bytes CUtexref pTexRef CUtexref CUarray unsigned int Flags CUtexref int CUaddress_mode am CUtexref unsigned int Flags CUaddress_mode CUtexref int dim CUarray_format int CUtexref hTexRef CUfunction unsigned int numbytes CUfunction int float value CUfunction int CUtexref hTexRef CUfunction int int grid_height CUevent unsigned int Flags CUevent hEvent CUevent hEvent CUstream unsigned int Flags CUstream hStream GLuint bufferobj unsigned int CUdevice dev CUdeviceptr unsigned int CUmodule const char name CUdeviceptr unsigned int bytesize CUdeviceptr dptr void unsigned int bytesize void CUdeviceptr unsigned int ByteCount CUarray unsigned int CUdeviceptr unsigned int ByteCount CUarray unsigned int const void unsigned int ByteCount CUarray unsigned int CUarray unsigned int unsigned int ByteCount void CUarray unsigned int unsigned int CUstream hStream const CUDA_MEMCPY2D pCopy CUdeviceptr const void unsigned int CUstream hStream const CUDA_MEMCPY2D CUstream hStream CUdeviceptr unsigned char unsigned int N CUdeviceptr unsigned int unsigned int N CUdeviceptr unsigned int unsigned short unsigned int unsigned int Height CUarray const CUDA_ARRAY_DESCRIPTOR pAllocateArray CUarray const CUDA_ARRAY3D_DESCRIPTOR pAllocateArray unsigned int CUtexref CUdeviceptr unsigned int bytes CUcontext unsigned int CUdevice device GLenum texture GLenum GLuint buffer GLenum GLuint renderbuffer GLenum GLsizeiptr const GLvoid GLenum usage GLuint shader GLenum type GLsizei const GLuint framebuffers GLsizei const GLuint renderbuffers GLuint v GLuint v GLenum GLenum GLenum GLuint GLint level GLsizei GLuint framebuffers GLuint const GLchar name GLenum GLintptr GLsizeiptr GLvoid data GLuint GLenum GLint param GLuint GLenum GLint param GLhandleARB programObj GLenum GLenum GLsizei GLsizei height GLenum GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid pixels GLint GLsizei const GLfloat value GLint GLfloat GLfloat v1 GLint GLfloat GLfloat GLfloat v2 GLint GLsizei const GLfloat value GLint GLsizei GLboolean const GLfloat value GLuint program GLuint GLfloat GLfloat GLfloat z GLuint GLint GLenum GLboolean GLsizei const GLvoid pointer GLuint GLuint const GLchar name GLenum GLsizei GLenum GLsizei GLsizei height GLenum GLuint renderbuffer GLenum GLenum GLint * params
CUdeviceptr getCudaPtr(S64 ofs=0)
CudaKernel getKernel(const String &name)
Structure holding ray statistics. Also provides print to the console. These statistics are used in a ...
void setKernel(const String &kernelName)
Sets kernel that should perform the actual traversal of the k-d tree on the gpu.
const U8 * getPtr(S64 ofs=0)
Buffer & getSlotToIDBuffer()
Gets buffer slots to ids.
Buffer & getTriShadedColorBuffer(void)
Returns shaded color buffer.
CUdeviceptr getMutableCudaPtr(S64 ofs=0)
Buffer & getResultBuffer()
Gets ray result buffer.
U8 * getMutablePtr(S64 ofs=0)
virtual int getTotalNumRays(void)
Buffer & getBuffer(void) const
Buffer & getGlobal(const String &name)
RayBuffer m_secondaryRays
virtual void updateResult(void)
CudaKernel & launch(void)
void setNeedClosestHit(bool c)
Sets whether the closet hit is needed.
void addOptions(const String &options)
void setSourceFile(const String &path)
void mortonSort()
Performs morton sort.
CudaRenderer(Environment *env)