shader: Implement transform feedbacks and define file format
This commit is contained in:
parent
4a6c299e3f
commit
e59971ea1b
11 changed files with 272 additions and 23 deletions
|
@ -20,6 +20,13 @@ u32 GenericAttributeIndex(Attribute attribute) {
|
|||
return (static_cast<u32>(attribute) - static_cast<u32>(Attribute::Generic0X)) / 4u;
|
||||
}
|
||||
|
||||
u32 GenericAttributeElement(Attribute attribute) {
|
||||
if (!IsGeneric(attribute)) {
|
||||
throw InvalidArgument("Attribute is not generic {}", attribute);
|
||||
}
|
||||
return static_cast<u32>(attribute) % 4;
|
||||
}
|
||||
|
||||
std::string NameOf(Attribute attribute) {
|
||||
switch (attribute) {
|
||||
case Attribute::PrimitiveId:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue