rprMaterialSystemGetInfo
Queries details for a particular material system.
rpr_status rprMaterialSystemGetInfo( |
rpr_material_system in_material_system, |
rpr_material_system_info type, |
|
size_t in_size, |
|
void * in_data, |
|
size_t * out_size); |
Parameters
Parameter |
Description |
---|---|
in_material_system |
The material system to query. |
type |
The information to obtain. |
in_size |
Size of the buffer pointed to by the data variable. |
in_data |
A buffer into which the results of the query will be stored. |
out_size |
Retuns the size in bytes of the data being queried. |
Notes
Query operations usually include two steps:
First, pass
data
as NULL along with a value for rpr_material_system_info detailing the information you wish to obtain. This will return the storage requirements for your query data.Secondly, query with
size_ret
set 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_INTERNAL_ERROR