Radeon ProRender

rprMaterialNodeSetInputDataByKey

Sets generic data input value. Some complex materials inputs may need more than 4-floats or int.

This API entry can be used to set any generic input data. Use it only when documentation requests to do it for specific material inputs.

rpr_status rprMaterialNodeSetInputDataByKey( rpr_material_node in_node,
  rpr_material_node_input in_input,
  void const * data, size_t dataSizeByte);

Parameters

Parameter Description
in_node The material node to set input value for.
in_input The input parameter to set value for.
dataSizeByte Data to set as the input.

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.