rprMeshGetInfo
Queries details for a particular mesh.
| rpr_status rprMeshGetInfo( | rpr_shape mesh, | 
| rpr_mesh_info mesh_info, | |
| size_t size, | |
| void * data, | |
| size_t * size_ret); | 
Parameters
| Parameter | Description | 
|---|---|
| mesh | The mesh to query. | 
| mesh_info | The information to obtain. | 
| size | Size of the buffer pointed to by the data variable. | 
| data | A buffer into which the results of the query will be stored. | 
| size_ret | Retuns the size in bytes of the data being queried. | 
Notes
Query operations usually include two steps:
- First, pass - dataas NULL along with a value for rpr_mesh_info detailing the information you wish to obtain. This will return the storage requirements for your query data.
- Secondly, query with - size_retset to NULL to fill the data buffer with the query data.
Output
Size in bytes of the data being queried.
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.
Errors
Possible error codes:
- RPR_ERROR_INVALID_PARAMETER