mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -51,7 +51,7 @@ namespace bgfx
|
||||
|
||||
"Unknown?!"
|
||||
};
|
||||
BX_STATIC_ASSERT(BX_COUNTOF(s_shadingLangName) == ShadingLang::Count+1, "ShadingLang::Enum and s_shadingLangName mismatch");
|
||||
static_assert(BX_COUNTOF(s_shadingLangName) == ShadingLang::Count+1, "ShadingLang::Enum and s_shadingLangName mismatch");
|
||||
|
||||
const char* getName(ShadingLang::Enum _lang)
|
||||
{
|
||||
@@ -312,7 +312,7 @@ namespace bgfx
|
||||
"mat3", "float3x3",
|
||||
"mat4", "float4x4",
|
||||
};
|
||||
BX_STATIC_ASSERT(BX_COUNTOF(s_uniformTypeName) == UniformType::Count*2);
|
||||
static_assert(BX_COUNTOF(s_uniformTypeName) == UniformType::Count*2);
|
||||
|
||||
static const char* s_allowedVertexShaderInputs[] =
|
||||
{
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace bgfx { namespace metal
|
||||
"a_texcoord6",
|
||||
"a_texcoord7",
|
||||
};
|
||||
BX_STATIC_ASSERT(bgfx::Attrib::Count == BX_COUNTOF(s_attribName) );
|
||||
static_assert(bgfx::Attrib::Count == BX_COUNTOF(s_attribName) );
|
||||
|
||||
bgfx::Attrib::Enum toAttribEnum(const bx::StringView& _name)
|
||||
{
|
||||
|
||||
@@ -302,7 +302,7 @@ namespace bgfx { namespace spirv
|
||||
"a_texcoord6",
|
||||
"a_texcoord7",
|
||||
};
|
||||
BX_STATIC_ASSERT(bgfx::Attrib::Count == BX_COUNTOF(s_attribName) );
|
||||
static_assert(bgfx::Attrib::Count == BX_COUNTOF(s_attribName) );
|
||||
|
||||
bgfx::Attrib::Enum toAttribEnum(const bx::StringView& _name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user