The Nebula Device 3: Jobs::JobUniformDesc Class Reference

The Nebula Device 3

Jobs::JobUniformDesc Class Reference

#include <jobuniformdesc.h>


Detailed Description

Descriptor for uniform data of a Job.

(C) 2009 Radon Labs GmbH

Public Member Functions

 JobUniformDesc ()
 default constructor
 JobUniformDesc (void *ptr, SizeT bufSize, SizeT scratchSize)
 constructor with 1 uniform buffer
 JobUniformDesc (void *ptr0, SizeT bufSize0, void *ptr1, SizeT bufSize1, SizeT scratchSize)
 constructor with 2 uniform buffers
void Update (IndexT index, void *ptr, SizeT bufSize, SizeT scratchSize)
 update the uniform desc, all sizes in bytes
SizeT GetNumBuffers () const
 get number of buffers
void * GetPointer (IndexT i) const
 get buffer pointer
SizeT GetBufferSize (IndexT i) const
 get buffer size
SizeT GetScratchSize () const
 get scratch size