From 262bf3d337ea2669a00fcf5996fccac39057783e Mon Sep 17 00:00:00 2001 From: Vladislav Mikhalin Date: Thu, 11 Jul 2024 16:10:23 +0300 Subject: [PATCH] Fixed an issue with number of components of shader attributes --- src/shader_recompiler/runtime_info.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shader_recompiler/runtime_info.h b/src/shader_recompiler/runtime_info.h index 6cf5c632..ce3b64fc 100644 --- a/src/shader_recompiler/runtime_info.h +++ b/src/shader_recompiler/runtime_info.h @@ -143,9 +143,7 @@ struct Info { } u32 NumComponents(IR::Attribute attrib) const { - const u8 mask = flags[Index(attrib)]; - ASSERT(mask != 0b1011 || mask != 0b1101); - return std::popcount(mask); + return 4; } static size_t Index(IR::Attribute attrib) {