rprContextCreatePostEffect

Creates a post effect.

rpr_status rprContextCreatePostEffect(

rpr_context context,

rpr_post_effect_type type,

rpr_post_effect * out_effect);

Parameters

Parameter

Description

context

The context to which the post effect will be added.

type

The type of the created post effect.

out_effect

A pointer to the created post effect object.

Notes

Post effects, such as tonemapping or bloom filters, are run on RGBA color framebuffer outputs from a render.

Output

A pointer to a post effect object.

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