PebbleOS v4.47.0-327-g7753e801d
Loading...
Searching...
No Matches
pbl_gpu_ops Struct Reference

GPU driver operations. More...

#include <gpu.h>

Data Fields

int(* init )(const struct pbl_gpu *gpu)
 Set the GPU up.
 
int(* fill )(const struct pbl_gpu *gpu, const struct pbl_gpu_buffer *dst, const struct pbl_gpu_rect *rect, uint32_t argb)
 Fill rect, within dst and not empty, with argb, blended if not opaque.
 
int(* blit )(const struct pbl_gpu *gpu, const struct pbl_gpu_buffer *dst, const struct pbl_gpu_rect *clip, const struct pbl_gpu_blit *blit)
 Draw blit over dst, touching only clip, within dst and not empty.
 

Detailed Description

GPU driver operations.

The class layer checks the job against the capabilities, clips it to the target and runs one at a time; drivers draw, and look after the caches of the buffers.

Field Documentation

◆ blit

int(* pbl_gpu_ops::blit) (const struct pbl_gpu *gpu, const struct pbl_gpu_buffer *dst, const struct pbl_gpu_rect *clip, const struct pbl_gpu_blit *blit)

Draw blit over dst, touching only clip, within dst and not empty.

Returns 0 or a negative errno.

◆ fill

int(* pbl_gpu_ops::fill) (const struct pbl_gpu *gpu, const struct pbl_gpu_buffer *dst, const struct pbl_gpu_rect *rect, uint32_t argb)

Fill rect, within dst and not empty, with argb, blended if not opaque.

Returns 0 or a negative errno.

◆ init

int(* pbl_gpu_ops::init) (const struct pbl_gpu *gpu)

Set the GPU up.

Returns 0 or a negative errno.


The documentation for this struct was generated from the following file: