rprContextDetachRenderLayer
Detaches a render layer from context.
Render Layers allow using one Radeon ProRender scene and context to render multiple ‘layers’ of a scene, in which each layer has a different subset of visible objects. Attaching and detaching a Render Layer to the context enables the render layer by name.
Shapes should be removed from a certain layer by name with rprShapeDetachRenderLayer.
rpr_status rprContextDetachRenderLayer( |
rpr_context context, |
rpr_char const * renderLayerString); |
Parameters
Parameter |
Description |
---|---|
context |
The context to detach a render layer from. |
renderLayerString |
Name of a render layer to detach. |
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.