mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 21:13:02 +01:00
Cleanup.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user