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:
commit
5f26bfc70c
|
@ -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