mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 09:40:17 +00:00
VideoCommon/VertexLoader_Normal: Tidy up function declarations
We can use u32 to shorten up the function declarations. While we're at it, remove unnecessary comments. These don't help with understanding.
This commit is contained in:
parent
80d8173d29
commit
3b8fb22d93
@ -176,15 +176,12 @@ void VertexLoader_Normal::Init()
|
|||||||
m_Table[NRM_INDEX16][NRM_INDICES3][NRM_NBT3][FORMAT_FLOAT] = Normal_Index_Indices3<u16, float>();
|
m_Table[NRM_INDEX16][NRM_INDICES3][NRM_NBT3][FORMAT_FLOAT] = Normal_Index_Indices3<u16, float>();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int VertexLoader_Normal::GetSize(u64 _type, unsigned int _format, unsigned int _elements,
|
u32 VertexLoader_Normal::GetSize(u64 type, u32 format, u32 elements, u32 index3)
|
||||||
unsigned int _index3)
|
|
||||||
{
|
{
|
||||||
return m_Table[_type][_index3][_elements][_format].gc_size;
|
return m_Table[type][index3][elements][format].gc_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
TPipelineFunction VertexLoader_Normal::GetFunction(u64 _type, unsigned int _format,
|
TPipelineFunction VertexLoader_Normal::GetFunction(u64 type, u32 format, u32 elements, u32 index3)
|
||||||
unsigned int _elements, unsigned int _index3)
|
|
||||||
{
|
{
|
||||||
TPipelineFunction pFunc = m_Table[_type][_index3][_elements][_format].function;
|
return m_Table[type][index3][elements][format].function;
|
||||||
return pFunc;
|
|
||||||
}
|
}
|
||||||
|
@ -10,16 +10,11 @@
|
|||||||
class VertexLoader_Normal
|
class VertexLoader_Normal
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// Init
|
|
||||||
static void Init();
|
static void Init();
|
||||||
|
|
||||||
// GetSize
|
static u32 GetSize(u64 type, u32 format, u32 elements, u32 index3);
|
||||||
static unsigned int GetSize(u64 _type, unsigned int _format, unsigned int _elements,
|
|
||||||
unsigned int _index3);
|
|
||||||
|
|
||||||
// GetFunction
|
static TPipelineFunction GetFunction(u64 type, u32 format, u32 elements, u32 index3);
|
||||||
static TPipelineFunction GetFunction(u64 _type, unsigned int _format, unsigned int _elements,
|
|
||||||
unsigned int _index3);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum ENormalType
|
enum ENormalType
|
||||||
|
Loading…
x
Reference in New Issue
Block a user