rprImageSetUDIM

Sets a tile to an UDIM image.

UDIM tiled textures are created by creating a blank image for the Root (imageUdimRoot) and for each image tile, creating an rpr_image, and calling rprImageSetUDIM() to bind the tile to the root image.

rpr_status rprImageSetUDIM(

rpr_image imageUdimRoot,

rpr_uint tileIndex,

rpr_image imageTile);

Parameters

Parameter

Description

imageUdimRoot

Must be an UDIM image created with no data: rprContextCreateImage(context, {0,RPR_COMPONENT_TYPE_UINT8}, nullptr, nullptr, );.

tileIndex

A valid UDIM index: 1001 , 1002, 1003 … 1011, 1012, 1013 … etc.

imageTile

A valid classic rpr_image.

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.