Radeon ProRender

rprShapeSetLayerMask

Sets object rendering layer mask.

Then, use rprContextSetParameterByKey1u (context, renderLayerMask, mask) in order to render only a group of shapes with that mask enabled.

Warning

This function is deprecated and will be removed in the future. Use rprShapeAttachRenderLayer, rprShapeDetachRenderLayer, rprContextAttachRenderLayer and rprContextDetachRenderLayer instead.

rpr_status rprShapeSetLayerMask( rpr_shape shape,
  rpr_uint layerMask);

Parameters

Parameter Description
shape The shape to set rendering layer mask for.
layerMask The render mask to set.

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.