diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-05-01 23:26:54 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-05-01 23:28:38 +0300 |
commit | 3f0c09f6ddde9ba0f995eb3d7e088bd650112891 (patch) | |
tree | c85cdbb894b0e6d9fee616e956590174cd057209 /source/blender/gpu/shaders | |
parent | fc872d738ef1526fd251f073c1a495344360a667 (diff) |
GPUShaderCreateInfo: Add validation for overlapping vertex attribute
Those are usually not supported but some driver silently fix them and most
just silently fail (rendering error).
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r-- | source/blender/gpu/shaders/infos/gpu_shader_instance_varying_color_varying_size_info.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/shaders/infos/gpu_shader_instance_varying_color_varying_size_info.hh b/source/blender/gpu/shaders/infos/gpu_shader_instance_varying_color_varying_size_info.hh index 4885efc66c2..fb7bbcbc3e5 100644 --- a/source/blender/gpu/shaders/infos/gpu_shader_instance_varying_color_varying_size_info.hh +++ b/source/blender/gpu/shaders/infos/gpu_shader_instance_varying_color_varying_size_info.hh @@ -10,9 +10,9 @@ GPU_SHADER_CREATE_INFO(gpu_shader_instance_varying_color_varying_size) .vertex_in(0, Type::VEC3, "pos") - .vertex_in(1, Type::MAT4, "InstanceModelMatrix") - .vertex_in(2, Type::VEC4, "color") - .vertex_in(3, Type::FLOAT, "size") + .vertex_in(1, Type::VEC4, "color") + .vertex_in(2, Type::FLOAT, "size") + .vertex_in(3, Type::MAT4, "InstanceModelMatrix") .vertex_out(flat_color_iface) .fragment_out(0, Type::VEC4, "fragColor") .push_constant(Type::MAT4, "ViewProjectionMatrix") |