Merge pull request #283 from vladmikhalin/fix-shader-attribute-components

Fixed an issue with number of components of shader attributes
This commit is contained in:
georgemoralis 2024-07-11 16:11:56 +03:00 committed by GitHub
commit 5f26bfc70c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) {