mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-14 17:48:59 +02:00
fuck it
This commit is contained in:
parent
2590095e35
commit
edc9207a9c
1 changed files with 4 additions and 2 deletions
|
|
@ -276,8 +276,10 @@ struct FixedPipelineState {
|
|||
return offsetof(FixedPipelineState, xfb_state);
|
||||
}
|
||||
|
||||
u32 DynamicAttributeType(size_t index) const noexcept {
|
||||
return (attribute_types >> (index * 2)) & 0b11;
|
||||
u32 DynamicAttributeType(size_t i) const noexcept {
|
||||
return (((attribute_types[0] >> i) & 1) << 0)
|
||||
| (((attribute_types[1] >> i) & 1) << 1)
|
||||
| (((attribute_types[2] >> i) & 1) << 2);
|
||||
}
|
||||
};
|
||||
static_assert(std::has_unique_object_representations_v<FixedPipelineState>);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue