shader_ir/memory: Implement physical input attributes

This commit is contained in:
ReinUsesLisp 2019-04-30 18:12:30 -03:00
parent 0ace07d1cc
commit f96020b2ae
4 changed files with 32 additions and 6 deletions

View file

@ -98,6 +98,10 @@ union Attribute {
BitField<22, 2, u64> element;
BitField<24, 6, Index> index;
BitField<47, 3, AttributeSize> size;
bool IsPhysical() const {
return element == 0 && static_cast<u64>(index.Value()) == 0;
}
} fmt20;
union {