This commit is contained in:
Бранимир Караџић
2024-12-07 22:49:45 -08:00
parent f6baa4bdaf
commit 042ebe8814
31 changed files with 110 additions and 110 deletions

View File

@@ -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"

View File

@@ -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[] =
{

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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"