gpu_async_fill

FILL a frame-buffer with color.

static int32_t gpu_async_fill(
    struct gpu_buffer * dst,
    struct gpu_rectangle * rect,
    gpu_color_t color
)

This function FILL a destination-filled area with color. This function is asynchronous, application can call gpu_async_register_callback function to register a callback function. The callback function will be invoked when GPU operation finished.

Parameters

dst

Type: struct gpu_buffer *

Pointer to the destination-filled area buffer.

rect

Type: struct gpu_rectangle *

Pointer to the destination-filled area rectangle.

color

Type: gpu_color_t

A 32-bit ARGB color resized to the area pixel format.

Returns

Type: int32_t

Operation status.

ERR_BUSY

A GPU Operation still in processing.