Fixed an issue with number of components of shader attributes
This commit is contained in:
parent
914aa10875
commit
262bf3d337
|
@ -143,9 +143,7 @@ struct Info {
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 NumComponents(IR::Attribute attrib) const {
|
u32 NumComponents(IR::Attribute attrib) const {
|
||||||
const u8 mask = flags[Index(attrib)];
|
return 4;
|
||||||
ASSERT(mask != 0b1011 || mask != 0b1101);
|
|
||||||
return std::popcount(mask);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t Index(IR::Attribute attrib) {
|
static size_t Index(IR::Attribute attrib) {
|
||||||
|
|
Loading…
Reference in New Issue