Fixed an issue with number of components of shader attributes

This commit is contained in:
Vladislav Mikhalin 2024-07-11 16:10:23 +03:00
parent 914aa10875
commit 262bf3d337
1 changed files with 1 additions and 3 deletions

View File

@ -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) {