mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
Cleanup.
This commit is contained in:
@@ -67,7 +67,7 @@ static const char* s_attribShortNames[] =
|
||||
"TC6", // TexCoord6
|
||||
"TC7", // TexCoord7
|
||||
};
|
||||
BX_STATIC_ASSERT(BX_COUNTOF(s_attribShortNames) == bgfx::Attrib::Count);
|
||||
static_assert(BX_COUNTOF(s_attribShortNames) == bgfx::Attrib::Count);
|
||||
|
||||
|
||||
static const char* s_supportedExt[] =
|
||||
@@ -150,7 +150,7 @@ static const char* s_bindingName[] =
|
||||
"Help",
|
||||
"About",
|
||||
};
|
||||
BX_STATIC_ASSERT(Binding::Count == BX_COUNTOF(s_bindingName) );
|
||||
static_assert(Binding::Count == BX_COUNTOF(s_bindingName) );
|
||||
|
||||
static const InputBinding* s_binding[] =
|
||||
{
|
||||
@@ -159,7 +159,7 @@ static const InputBinding* s_binding[] =
|
||||
s_bindingHelp,
|
||||
s_bindingAbout,
|
||||
};
|
||||
BX_STATIC_ASSERT(Binding::Count == BX_COUNTOF(s_binding) );
|
||||
static_assert(Binding::Count == BX_COUNTOF(s_binding) );
|
||||
|
||||
static const char* s_filter = ""
|
||||
"Bgfx geometry (bin) | *.bin\n"
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -219,7 +219,7 @@ static const char* s_bindingName[] =
|
||||
"Help",
|
||||
"About",
|
||||
};
|
||||
BX_STATIC_ASSERT(Binding::Count == BX_COUNTOF(s_bindingName) );
|
||||
static_assert(Binding::Count == BX_COUNTOF(s_bindingName) );
|
||||
|
||||
static const InputBinding* s_binding[] =
|
||||
{
|
||||
@@ -228,7 +228,7 @@ static const InputBinding* s_binding[] =
|
||||
s_bindingHelp,
|
||||
s_bindingAbout,
|
||||
};
|
||||
BX_STATIC_ASSERT(Binding::Count == BX_COUNTOF(s_binding) );
|
||||
static_assert(Binding::Count == BX_COUNTOF(s_binding) );
|
||||
|
||||
static const char* s_filter = ""
|
||||
"All Image Formats (bmp, dds, exr, gif, gnf, jpg, jpeg, hdr, ktx, pgm, png, ppm, psd, pvr, tga) | *.bmp *.dds *.exr *.gif *.gnf *.jpg *.jpeg *.hdr *.ktx *.pgm *.png *.ppm *.psd *.pvr *.tga\n"
|
||||
|
||||
Reference in New Issue
Block a user