Radeon ProRender


Attaches a Render Layer to 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 added to a certain layer by name with rprShapeAttachRenderLayer.

rpr_status rprContextAttachRenderLayer( rpr_context context,
  rpr_char const * renderLayerString);


Parameter Description
context The context to attach a render layer to.
renderLayerString Name of a render layer to attach.


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.