Hi!
I’d like to off-load following task 2D from CPU to GPU*, and wonder, what kind of object (texture or renderbuffer or something else) I should use for best performance?
Currently on CPU (PC) I do:
- draw static elements into a 2D array
(i.e.uint32_t colorbuf[height][width]; // format ARGB-8-8-8-8
); - on a change event, copy that static image over to the back buffer, with stencil test** (another 2D array holding stencil data), and draw any dynamic elements to it, also with stencil test;
- present everything
GPU: ???
*iGPU
**there are more than one entity to draw