KallDrexx / microgpu

2d focused GPU for resource constrained microcontrollers
MIT License
9 stars 2 forks source link

Displays should generate frame buffer #19

Closed KallDrexx closed 3 months ago

KallDrexx commented 4 months ago

Today, the frame buffer is generated by the texture manager. However, in some scenarios (such as rgb lcd displays in ESP-IDF), the frame buffer is provided for us by the library. This is a more efficient as the library can then use special DMA capabilities to get the frame buffer from memory into the device.

This is important because without this, we need to manually copy our drawing frame buffer into the library's frame buffer for deployment to the device. Being able to draw directly to the frame buffer the library will use will help with performance.

So we need some way to get the frame buffer address from the display, and use that as the texture's pixel address.