mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Convert CPMemory to BitField and enum class
Additionally, VCacheEnhance has been added to UVAT_group1. According to YAGCD, this field is always 1. TVtxDesc also now has separate low and high fields whose hex values correspond with the proper registers, instead of having one 33-bit value. This change was made in a way that should be backwards-compatible.
This commit is contained in:
@ -230,12 +230,15 @@ constexpr Types InitializeTable()
|
||||
constexpr Types s_table = InitializeTable();
|
||||
} // Anonymous namespace
|
||||
|
||||
u32 VertexLoader_Normal::GetSize(u64 type, u32 format, u32 elements, u32 index3)
|
||||
u32 VertexLoader_Normal::GetSize(VertexComponentFormat type, ComponentFormat format,
|
||||
NormalComponentCount elements, u32 index3)
|
||||
{
|
||||
return s_table[type][index3][elements][format].gc_size;
|
||||
return s_table[u32(type)][index3][u32(elements)][u32(format)].gc_size;
|
||||
}
|
||||
|
||||
TPipelineFunction VertexLoader_Normal::GetFunction(u64 type, u32 format, u32 elements, u32 index3)
|
||||
TPipelineFunction VertexLoader_Normal::GetFunction(VertexComponentFormat type,
|
||||
ComponentFormat format,
|
||||
NormalComponentCount elements, u32 index3)
|
||||
{
|
||||
return s_table[type][index3][elements][format].function;
|
||||
return s_table[u32(type)][index3][u32(elements)][u32(format)].function;
|
||||
}
|
||||
|
Reference in New Issue
Block a user