rprMaterialNodeGetInputInfo

Queries information for a material node input.

rpr_status rprMaterialNodeGetInputInfo(

rpr_material_node in_node,

rpr_int in_input_idx,

rpr_material_node_input_info in_info,

size_t in_size,

void * in_data,

size_t * out_size);

Parameters

Parameter

Description

in_node

The material node to query.

in_input_idx

The index of the material node input to query.

in_info

The type of information requested.

size

Size of buffer pointed to by data variable.

data

The buffer into which query info will be placed.

size_ret

Returns the size in bytes of the data being queried.

Notes

Query operations usually include two steps:

  1. First, pass data as NULL along with a value for rpr_material_node_input_info detailing the information you wish to obtain. This will return the storage requirements for your query data.

  2. 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_INVALID_PARAMETER