rprContextCreateGrid
Creates a grid data to be used with a heterogenous volume.
Grid data is a layout of voxels. Each voxel references a key which lookups to the lookup array.
rpr_status rprContextCreateGrid( |
rpr_context context, |
rpr_grid * out_grid, |
|
size_t gridSizeX, |
|
size_t gridSizeY, |
|
size_t gridSizeZ, |
|
void const * indicesList, |
|
size_t numberOfIndices, |
|
rpr_grid_indices_topology indicesListTopology, |
|
void const * gridData, |
|
size_t gridDataSizeByte, |
|
rpr_uint gridDataTopology___unused); |
Parameters
Parameter |
Description |
---|---|
context |
The context to create grid data for. |
out_grid |
The created grid object. |
gridSizeX |
Number of voxels in X in the grid. |
gridSizeY |
Number of voxels in Y in the grid. |
gridSizeZ |
Number of voxels in Z in the grid. |
indicesList |
List of indices for each grid data. |
numberOfIndices |
Number of indices. |
indicesListTopology |
Layout of indices. |
gridData |
Grid data. |
gridDataSizeByte |
Size of each grid voxel. |
gridDataTopology___unused) |
Unused. |
Output
A pointer to a grid object.
Return
Returns RPR_SUCCESS in case of success, or RPR_ERROR code if a problem was encountered.
To learn how to handle errors in AMD Radeon ProRender SDK, see Error Handling.