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

@@ -23,7 +23,7 @@ namespace bgfx
{ DescriptorType::StorageBuffer, 0x0007 },
{ DescriptorType::StorageImage, 0x0003 },
};
BX_STATIC_ASSERT(BX_COUNTOF(s_descriptorTypeToId) == DescriptorType::Count);
static_assert(BX_COUNTOF(s_descriptorTypeToId) == DescriptorType::Count);
DescriptorType::Enum idToDescriptorType(uint16_t _id)
{
@@ -58,7 +58,7 @@ namespace bgfx
{ TextureComponentType::Depth, 0x03 },
{ TextureComponentType::UnfilterableFloat, 0x04 },
};
BX_STATIC_ASSERT(BX_COUNTOF(s_textureComponentTypeToId) == TextureComponentType::Count);
static_assert(BX_COUNTOF(s_textureComponentTypeToId) == TextureComponentType::Count);
TextureComponentType::Enum idToTextureComponentType(uint8_t _id)
{
@@ -94,7 +94,7 @@ namespace bgfx
{ TextureDimension::DimensionCubeArray, 0x05 },
{ TextureDimension::Dimension3D, 0x06 },
};
BX_STATIC_ASSERT(BX_COUNTOF(s_textureDimensionToId) == TextureDimension::Count);
static_assert(BX_COUNTOF(s_textureDimensionToId) == TextureDimension::Count);
TextureDimension::Enum idToTextureDimension(uint8_t _id)
{