rprMaterialNodeSetInputImageDataByKey

Sets an image input value.

rpr_status rprMaterialNodeSetInputImageDataByKey(

rpr_material_node in_node,

rpr_material_node_input in_input,

rpr_image image);

Parameters

Parameter

Description

in_node

The material node to set image input value for.

in_input

The input parameter to set image value for.

image

The image object to set as the input value.

Notes

Only used in RPR_MATERIAL_NODE_IMAGE_TEXTURE.

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