RenderModeFlag_EnableDepthPeeling=1<<1,// Enable depth peeling. Must have a peel buffer set.
};
public:
CudaRaster(void);
~CudaRaster(void);
voidsetViewportSize(intwidth,intheight,intnumImages);// Width and height must be multiples of tile size (8x8).
voidsetRenderModeFlags(unsignedintrenderModeFlags);// Affects all subsequent calls to drawTriangles(). Defaults to zero.
voiddeferredClear(unsignedintclearColor);// Clears color and depth buffers during next call to drawTriangles().
voidsetVertexBuffer(void*vertices,intnumVertices);// GPU pointer managed by caller. Vertex positions in clip space as float4 (x, y, z, w).
voidsetIndexBuffer(void*indices,intnumTriangles);// GPU pointer managed by caller. Triangle index+color quadruplets as uint4 (idx0, idx1, idx2, color).
booldrawTriangles(constint*ranges,cudaStream_tstream);// Ranges (offsets and counts) as #triangles entries, not as bytes. If NULL, draw all triangles. Returns false in case of internal overflow.
void*getColorBuffer(void);// GPU pointer managed by CudaRaster.
void*getDepthBuffer(void);// GPU pointer managed by CudaRaster.
voidswapDepthAndPeel(void);// Swap depth and peeling buffers.