On Tue Nov 11 21:10:06 2025 +0000, Elizabeth Figura wrote:
I think this is a good idea, and at one point I was trying to do something similar. There are some further changes we can make here—some code that doesn't look GL-specific probably is, and some code like alpha fixup should probably be shared. Also, some code can be modernized a bit. In the interest of expediency I'm going to take the liberty of fixing it up myself and resubmitting, rather than just reviewing, if that's not going to be too much of a problem.
The split method was very simple.
Basically just searched for gl and vk keywords for the most part and copied and pasted them to the corresponding files in the same order if they contained rendering backend specific code.
Agreed there are some methods that seemed only relevant for GL but left some as generic in texture.c if they contained no rendering backend specific code.