googlestadia / PorQue4K

Los arcoiris son mejores en 4K. #BlackLivesMatter
Apache License 2.0
20 stars 7 forks source link

Derive resource bindings instead of hard-coding them #7

Open robbiesri opened 4 years ago

robbiesri commented 4 years ago

Instead of hand-coding the binding indices, we should be grabbing the info from reflection. We'll have to some app-specific metadata (like this texture should bind to the 'NormalTexture' or whatever), but that's way more maintainable than what we have now

Alternatively, we could use a shared header for the shaders and Vulkan code