gboisse / gfx

A minimalist and easy to use graphics API.
MIT License
502 stars 36 forks source link

Re add 256B aligned texture copy if unsupported #108

Closed maoliver-amd closed 8 months ago

maoliver-amd commented 8 months ago

One of the things I noticed when running an older driver version was that old drivers dont fully support certain features. It may not be that useful to support these older drivers but in this case it was easy to fix. So most modern drivers support copying data using unrestricted buffer pitch which is why the 256B alignment code was removed. In order to support older drivers I added the code back in but wrapped it in a device check that checks for unrestricted buffer pitch support and use fallback if unsupported.