|
PebbleOS v4.47.0-327-g7753e801d
|
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. | |
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.
| 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.
| 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.
| int(* pbl_gpu_ops::init) (const struct pbl_gpu *gpu) |
Set the GPU up.
Returns 0 or a negative errno.