rprFrameBufferFillWithColor

Fills contents of a framebuffer with a single color.

The call is blocking and the image is ready when returned. If you want to fill with zeros, it’s advised to use rprFrameBufferClear.

rpr_status rprFrameBufferFillWithColor(

rpr_framebuffer frame_buffer,

rpr_float r,

rpr_float g,

rpr_float b,

rpr_float a);

Parameters

Parameter

Description

frame_buffer

Framebuffer to fill.

r

The Red component of a color value.

g

The Green component of a color value.

b

The Blue component of a color value.

a

The Alpha component of a color value.

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