mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -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:
@ -200,12 +200,15 @@ constexpr u32 s_table_read_position_vertex_size[4][8][2] = {
|
||||
};
|
||||
} // Anonymous namespace
|
||||
|
||||
u32 VertexLoader_Position::GetSize(u64 type, u32 format, u32 elements)
|
||||
u32 VertexLoader_Position::GetSize(VertexComponentFormat type, ComponentFormat format,
|
||||
CoordComponentCount elements)
|
||||
{
|
||||
return s_table_read_position_vertex_size[type][format][elements];
|
||||
return s_table_read_position_vertex_size[u32(type)][u32(format)][u32(elements)];
|
||||
}
|
||||
|
||||
TPipelineFunction VertexLoader_Position::GetFunction(u64 type, u32 format, u32 elements)
|
||||
TPipelineFunction VertexLoader_Position::GetFunction(VertexComponentFormat type,
|
||||
ComponentFormat format,
|
||||
CoordComponentCount elements)
|
||||
{
|
||||
return s_table_read_position[type][format][elements];
|
||||
return s_table_read_position[u32(type)][u32(format)][u32(elements)];
|
||||
}
|
||||
|
Reference in New Issue
Block a user