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/intern/gpu_shader_create_info.hh | |
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/intern/gpu_shader_create_info.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader_create_info.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_create_info.hh b/source/blender/gpu/intern/gpu_shader_create_info.hh index 7c827e237eb..4927ef75a75 100644 --- a/source/blender/gpu/intern/gpu_shader_create_info.hh +++ b/source/blender/gpu/intern/gpu_shader_create_info.hh @@ -801,7 +801,8 @@ struct ShaderCreateInfo { std::string check_error() const; /** Error detection that some backend compilers do not complain about. */ - void validate(const ShaderCreateInfo &other_info); + void validate_merge(const ShaderCreateInfo &other_info); + void validate_vertex_attributes(const ShaderCreateInfo *other_info = nullptr); /** \} */ |