mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
VertexLoader_TextCoord: Tidy up public function definitions
We can use u32 instead of unsigned int to shorten up these definitions and make them much nicer to read. While we're at it, change the size array to house u32 elements to match the return value of the function.
This commit is contained in:
@ -179,7 +179,7 @@ constexpr TPipelineFunction s_table_read_tex_coord[4][8][2] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr int s_table_read_tex_coord_vertex_size[4][8][2] = {
|
constexpr u32 s_table_read_tex_coord_vertex_size[4][8][2] = {
|
||||||
{
|
{
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
@ -211,16 +211,14 @@ constexpr int s_table_read_tex_coord_vertex_size[4][8][2] = {
|
|||||||
};
|
};
|
||||||
} // Anonymous namespace
|
} // Anonymous namespace
|
||||||
|
|
||||||
unsigned int VertexLoader_TextCoord::GetSize(u64 _type, unsigned int _format,
|
u32 VertexLoader_TextCoord::GetSize(u64 type, u32 format, u32 elements)
|
||||||
unsigned int _elements)
|
|
||||||
{
|
{
|
||||||
return s_table_read_tex_coord_vertex_size[_type][_format][_elements];
|
return s_table_read_tex_coord_vertex_size[type][format][elements];
|
||||||
}
|
}
|
||||||
|
|
||||||
TPipelineFunction VertexLoader_TextCoord::GetFunction(u64 _type, unsigned int _format,
|
TPipelineFunction VertexLoader_TextCoord::GetFunction(u64 type, u32 format, u32 elements)
|
||||||
unsigned int _elements)
|
|
||||||
{
|
{
|
||||||
return s_table_read_tex_coord[_type][_format][_elements];
|
return s_table_read_tex_coord[type][format][elements];
|
||||||
}
|
}
|
||||||
|
|
||||||
TPipelineFunction VertexLoader_TextCoord::GetDummyFunction()
|
TPipelineFunction VertexLoader_TextCoord::GetDummyFunction()
|
||||||
|
@ -10,13 +10,10 @@
|
|||||||
class VertexLoader_TextCoord
|
class VertexLoader_TextCoord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// GetSize
|
static u32 GetSize(u64 type, u32 format, u32 elements);
|
||||||
static unsigned int GetSize(u64 _type, unsigned int _format, unsigned int _elements);
|
|
||||||
|
|
||||||
// GetFunction
|
static TPipelineFunction GetFunction(u64 type, u32 format, u32 elements);
|
||||||
static TPipelineFunction GetFunction(u64 _type, unsigned int _format, unsigned int _elements);
|
|
||||||
|
|
||||||
// GetDummyFunction
|
|
||||||
// It is important to synchronize tcIndex.
|
// It is important to synchronize tcIndex.
|
||||||
static TPipelineFunction GetDummyFunction();
|
static TPipelineFunction GetDummyFunction();
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user