rprMaterialNodeSetInputBufferDataByKey

Sets image input from the buffer data object.

rpr_status rprMaterialNodeSetInputBufferDataByKey(

rpr_material_node in_node,

rpr_material_node_input in_input,

rpr_buffer buffer);

Parameters

Parameter

Description

in_node

The material node to set input for.

in_input

The input to set image for.

rpr_buffer

The buffer data object to set as the input.

Notes

rpr_buffers are lists of float or integer data that are used in RPR_MATERIAL_NODE_BUFFER_SAMPLER.

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_OUT_OF_SYSTEM_MEMORY

  • RPR_ERROR_OUT_OF_VIDEO_MEMORY