Nabla
Nabla copied to clipboard
Make OpenGL Report Format Usages Properly
Describe the bug
Currently OpenGL reports nothing/garbage for all formats.
Expected vs observed behavior
Report correct usages.
Implementation Idea
Use OpenGL Proxy Textures to establish if texture can be created.
Would be good to "upgrade" our image format usage to report the full "VkImageFormatProperties"
Because OpenGL Proxy Textures can report that too.
Caveats
Reporting:
- vertex attribute format usage
- buffer view usage
- sampled image
- storage Image (needs to check spec if it fails if you attempt to bind it without a shader)
- attachment (FBO validation will return invalid status)
- blitSrc and Dst requires trial & error in CPU side.
Reporting:
- storage buffer view usage Requires weird trial and error with shaders possibly?
Feasible to self-report (without trial & error):
- storage image atomic usage
- storage buffer view atomic usage
- transfer src&dst is implicitly okay if proxy texture can be created (need to check multisample for that)