Radeon ProRender

rprFrameBufferClear

Clears the framebuffer before a new render is started.

rpr_status rprFrameBufferClear( rpr_framebuffer frame_buffer);

Parameters

Parameter Description
frame_buffer The framebuffer to clear.

Notes

The framebuffer must be cleared, setting all values in the buffer to zero, before any new render. Failure to do so could lead to contamination between frames, because repeated calls to rprContextRender() are used to accumulate data in the framebuffer.

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