mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Cleanup.
This commit is contained in:
@@ -77,7 +77,7 @@ static PosTexcoordVertex s_cubeVertices[] =
|
||||
{-1.0f, -1.0f, 1.0f, -2.0f, -2.0f, 2.0f },
|
||||
{ 1.0f, -1.0f, 1.0f, 2.0f, -2.0f, 2.0f },
|
||||
};
|
||||
BX_STATIC_ASSERT(BX_COUNTOF(s_cubeVertices) == 28);
|
||||
static_assert(BX_COUNTOF(s_cubeVertices) == 28);
|
||||
|
||||
static const uint16_t s_cubeIndices[] =
|
||||
{
|
||||
@@ -99,7 +99,7 @@ static const uint16_t s_cubeIndices[] =
|
||||
20, 22, 21, // 10
|
||||
21, 22, 23,
|
||||
};
|
||||
BX_STATIC_ASSERT(BX_COUNTOF(s_cubeIndices) == 36);
|
||||
static_assert(BX_COUNTOF(s_cubeIndices) == 36);
|
||||
|
||||
bx::Vec3 s_faceColors[] =
|
||||
{
|
||||
@@ -295,7 +295,7 @@ public:
|
||||
m_textures[22] = loadTextureWithUpdate("textures/texture_compression_atci.dds");
|
||||
m_textures[23] = loadTextureWithUpdate("textures/texture_compression_atce.dds");
|
||||
|
||||
BX_STATIC_ASSERT(24 == BX_COUNTOF(m_textures));
|
||||
static_assert(24 == BX_COUNTOF(m_textures));
|
||||
|
||||
const bgfx::Caps* caps = bgfx::getCaps();
|
||||
m_texture3DSupported = !!(caps->supported & BGFX_CAPS_TEXTURE_3D);
|
||||
@@ -754,7 +754,7 @@ public:
|
||||
"compute",
|
||||
"frameBuffer",
|
||||
};
|
||||
BX_STATIC_ASSERT(BX_COUNTOF(descTextureCube) == BX_COUNTOF(m_textureCube));
|
||||
static_assert(BX_COUNTOF(descTextureCube) == BX_COUNTOF(m_textureCube));
|
||||
|
||||
for (uint32_t ii = 0; ii < BX_COUNTOF(m_textureCube); ++ii)
|
||||
{
|
||||
@@ -847,7 +847,7 @@ public:
|
||||
"update\natci",
|
||||
"update\natce",
|
||||
};
|
||||
BX_STATIC_ASSERT(BX_COUNTOF(descTextures) == BX_COUNTOF(m_textures));
|
||||
static_assert(BX_COUNTOF(descTextures) == BX_COUNTOF(m_textures));
|
||||
|
||||
for (uint32_t ii = 0; ii < BX_COUNTOF(m_textures); ++ii)
|
||||
{
|
||||
@@ -878,7 +878,7 @@ public:
|
||||
"Tex3D R16F",
|
||||
"Tex3D R32F",
|
||||
};
|
||||
BX_STATIC_ASSERT(BX_COUNTOF(descTextures3d) == BX_COUNTOF(m_textures3d));
|
||||
static_assert(BX_COUNTOF(descTextures3d) == BX_COUNTOF(m_textures3d));
|
||||
|
||||
for (uint32_t ii = 0; ii < m_numTextures3d; ++ii)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user