mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Cleanup.
This commit is contained in:
parent
67218d7ce1
commit
bce1a52c42
1 changed files with 3 additions and 1 deletions
|
@ -621,7 +621,7 @@ namespace bgfx
|
|||
}
|
||||
}
|
||||
|
||||
const char* s_uniformTypeName[UniformType::Count] =
|
||||
const char* s_uniformTypeName[] =
|
||||
{
|
||||
"int",
|
||||
"float",
|
||||
|
@ -634,9 +634,11 @@ namespace bgfx
|
|||
"mat3",
|
||||
"mat4",
|
||||
};
|
||||
BX_STATIC_ASSERT(UniformType::Count == BX_COUNTOF(s_uniformTypeName) );
|
||||
|
||||
const char* getUniformTypeName(UniformType::Enum _enum)
|
||||
{
|
||||
BX_CHECK(_enum < UniformType::Count, "%d < UniformType::Count %d", _enum, UniformType::Count);
|
||||
return s_uniformTypeName[_enum];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue