From 3f0c09f6ddde9ba0f995eb3d7e088bd650112891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Sun, 1 May 2022 22:26:54 +0200 Subject: 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). --- source/blender/gpu/intern/gpu_shader_create_info.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/gpu/intern/gpu_shader_create_info.hh') 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); /** \} */ -- cgit v1.2.3