rprMaterialNodeSetInputNByKey

Connects nodes.

rpr_status rprMaterialNodeSetInputNByKey(

rpr_material_node in_node,

rpr_material_node_input in_input,

rpr_material_node in_input_node);

Parameters

Parameter

Description

in_node

The material node to connect a code to.

in_input

The input parameter to connect a node to.

in_input_node

The node to connect as the input.

Notes

Any normal inputs default to use the geometry normal.

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