Improve ImGui shaders reflection in GLSL
Pikachuxxxx opened this issue · 1 comments
Pikachuxxxx commented
imGui shaders reflection using SPIRV-Reflect in glsl produces wrong stride of 32 because the color is supplied as U32 but we have vec4 on the glsl side and it returns a format R32G32B32A32_UNORM
instead of `R8G8B8A8_UNORM.
Pikachuxxxx commented
Workaround : currently we check for the shader name and this is hardcoded(stride and format). A general solution must be designed for this