Upgrade Utility
This commit is contained in:
@@ -16,22 +16,22 @@ namespace Nz
|
||||
{
|
||||
namespace
|
||||
{
|
||||
std::size_t s_componentStride[ComponentType_Max + 1] =
|
||||
std::size_t s_componentStride[ComponentTypeCount] =
|
||||
{
|
||||
4 * sizeof(UInt8), // ComponentType_Color
|
||||
1 * sizeof(double), // ComponentType_Double1
|
||||
2 * sizeof(double), // ComponentType_Double2
|
||||
3 * sizeof(double), // ComponentType_Double3
|
||||
4 * sizeof(double), // ComponentType_Double4
|
||||
1 * sizeof(float), // ComponentType_Float1
|
||||
2 * sizeof(float), // ComponentType_Float2
|
||||
3 * sizeof(float), // ComponentType_Float3
|
||||
4 * sizeof(float), // ComponentType_Float4
|
||||
1 * sizeof(UInt32), // ComponentType_Int1
|
||||
2 * sizeof(UInt32), // ComponentType_Int2
|
||||
3 * sizeof(UInt32), // ComponentType_Int3
|
||||
4 * sizeof(UInt32), // ComponentType_Int4
|
||||
4 * sizeof(float) // ComponentType_Quaternion
|
||||
4 * sizeof(UInt8), // ComponentType::Color
|
||||
1 * sizeof(double), // ComponentType::Double1
|
||||
2 * sizeof(double), // ComponentType::Double2
|
||||
3 * sizeof(double), // ComponentType::Double3
|
||||
4 * sizeof(double), // ComponentType::Double4
|
||||
1 * sizeof(float), // ComponentType::Float1
|
||||
2 * sizeof(float), // ComponentType::Float2
|
||||
3 * sizeof(float), // ComponentType::Float3
|
||||
4 * sizeof(float), // ComponentType::Float4
|
||||
1 * sizeof(UInt32), // ComponentType::Int1
|
||||
2 * sizeof(UInt32), // ComponentType::Int2
|
||||
3 * sizeof(UInt32), // ComponentType::Int3
|
||||
4 * sizeof(UInt32), // ComponentType::Int4
|
||||
4 * sizeof(float) // ComponentType::Quaternion
|
||||
};
|
||||
}
|
||||
VertexDeclaration::VertexDeclaration(VertexInputRate inputRate, std::initializer_list<ComponentEntry> components) :
|
||||
@@ -43,10 +43,10 @@ namespace Nz
|
||||
m_components.reserve(components.size());
|
||||
for (const ComponentEntry& entry : components)
|
||||
{
|
||||
NazaraAssert(IsTypeSupported(entry.type), "Component type 0x" + NumberToString(entry.type, 16) + " is not supported by vertex declarations");
|
||||
NazaraAssert(entry.componentIndex == 0 || entry.component == VertexComponent_Userdata, "Only userdata components can have non-zero component indexes");
|
||||
NazaraAssert(IsTypeSupported(entry.type), "Component type 0x" + NumberToString(UnderlyingCast(entry.type), 16) + " is not supported by vertex declarations");
|
||||
NazaraAssert(entry.componentIndex == 0 || entry.component == VertexComponent::Userdata, "Only userdata components can have non-zero component indexes");
|
||||
|
||||
if (entry.component != VertexComponent_Unused)
|
||||
if (entry.component != VertexComponent::Unused)
|
||||
{
|
||||
// Check for duplicates
|
||||
for (const Component& component : m_components)
|
||||
@@ -62,7 +62,7 @@ namespace Nz
|
||||
component.offset = offset;
|
||||
component.type = entry.type;
|
||||
|
||||
offset += s_componentStride[component.type];
|
||||
offset += s_componentStride[UnderlyingCast(component.type)];
|
||||
}
|
||||
|
||||
m_stride = offset;
|
||||
@@ -72,281 +72,275 @@ namespace Nz
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case ComponentType_Color:
|
||||
case ComponentType_Double1:
|
||||
case ComponentType_Double2:
|
||||
case ComponentType_Double3:
|
||||
case ComponentType_Double4:
|
||||
case ComponentType_Float1:
|
||||
case ComponentType_Float2:
|
||||
case ComponentType_Float3:
|
||||
case ComponentType_Float4:
|
||||
case ComponentType_Int1:
|
||||
case ComponentType_Int2:
|
||||
case ComponentType_Int3:
|
||||
case ComponentType_Int4:
|
||||
case ComponentType::Color:
|
||||
case ComponentType::Double1:
|
||||
case ComponentType::Double2:
|
||||
case ComponentType::Double3:
|
||||
case ComponentType::Double4:
|
||||
case ComponentType::Float1:
|
||||
case ComponentType::Float2:
|
||||
case ComponentType::Float3:
|
||||
case ComponentType::Float4:
|
||||
case ComponentType::Int1:
|
||||
case ComponentType::Int2:
|
||||
case ComponentType::Int3:
|
||||
case ComponentType::Int4:
|
||||
return true;
|
||||
|
||||
case ComponentType_Quaternion:
|
||||
case ComponentType::Quaternion:
|
||||
return false;
|
||||
}
|
||||
|
||||
NazaraError("Component type not handled (0x" + NumberToString(type, 16) + ')');
|
||||
NazaraError("Component type not handled (0x" + NumberToString(UnderlyingCast(type), 16) + ')');
|
||||
return false;
|
||||
}
|
||||
|
||||
bool VertexDeclaration::Initialize()
|
||||
{
|
||||
if (!VertexDeclarationLibrary::Initialize())
|
||||
{
|
||||
NazaraError("Failed to initialise library");
|
||||
return false;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
ErrorFlags flags(ErrorFlag_Silent | ErrorFlag_ThrowException);
|
||||
|
||||
auto NewDeclaration = [](VertexInputRate inputRate, std::initializer_list<ComponentEntry> components)
|
||||
{
|
||||
return New(inputRate, std::move(components));
|
||||
return std::make_shared<VertexDeclaration>(inputRate, std::move(components));
|
||||
};
|
||||
|
||||
// VertexLayout_XY : VertexStruct_XY
|
||||
s_declarations[VertexLayout_XY] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::XY : VertexStruct_XY
|
||||
s_declarations[UnderlyingCast(VertexLayout::XY)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float2,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float2,
|
||||
0
|
||||
}
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XY]->GetStride() == sizeof(VertexStruct_XY), "Invalid stride for declaration VertexLayout_XY");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XY)]->GetStride() == sizeof(VertexStruct_XY), "Invalid stride for declaration VertexLayout::XY");
|
||||
|
||||
s_declarations[VertexLayout_XY_Color] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
s_declarations[UnderlyingCast(VertexLayout::XY_Color)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float2,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float2,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Color,
|
||||
ComponentType_Color,
|
||||
VertexComponent::Color,
|
||||
ComponentType::Color,
|
||||
0
|
||||
},
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XY_Color]->GetStride() == sizeof(VertexStruct_XY_Color), "Invalid stride for declaration VertexLayout_XY_Color");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XY_Color)]->GetStride() == sizeof(VertexStruct_XY_Color), "Invalid stride for declaration VertexLayout::XY_Color");
|
||||
|
||||
// VertexLayout_XY_UV : VertexStruct_XY_UV
|
||||
s_declarations[VertexLayout_XY_UV] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::XY_UV : VertexStruct_XY_UV
|
||||
s_declarations[UnderlyingCast(VertexLayout::XY_UV)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float2,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float2,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_TexCoord,
|
||||
ComponentType_Float2,
|
||||
VertexComponent::TexCoord,
|
||||
ComponentType::Float2,
|
||||
0
|
||||
},
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XY_UV]->GetStride() == sizeof(VertexStruct_XY_UV), "Invalid stride for declaration VertexLayout_XY_UV");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XY_UV)]->GetStride() == sizeof(VertexStruct_XY_UV), "Invalid stride for declaration VertexLayout::XY_UV");
|
||||
|
||||
// VertexLayout_XYZ : VertexStruct_XYZ
|
||||
s_declarations[VertexLayout_XYZ] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::XYZ : VertexStruct_XYZ
|
||||
s_declarations[UnderlyingCast(VertexLayout::XYZ)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XYZ]->GetStride() == sizeof(VertexStruct_XYZ), "Invalid stride for declaration VertexLayout_XYZ");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XYZ)]->GetStride() == sizeof(VertexStruct_XYZ), "Invalid stride for declaration VertexLayout::XYZ");
|
||||
|
||||
// VertexLayout_XYZ_Color : VertexStruct_XYZ_Color
|
||||
s_declarations[VertexLayout_XYZ_Color] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::XYZ_Color : VertexStruct_XYZ_Color
|
||||
s_declarations[UnderlyingCast(VertexLayout::XYZ_Color)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Color,
|
||||
ComponentType_Color,
|
||||
VertexComponent::Color,
|
||||
ComponentType::Color,
|
||||
0
|
||||
}
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XYZ_Color]->GetStride() == sizeof(VertexStruct_XYZ_Color), "Invalid stride for declaration VertexLayout_XYZ_Color");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XYZ_Color)]->GetStride() == sizeof(VertexStruct_XYZ_Color), "Invalid stride for declaration VertexLayout::XYZ_Color");
|
||||
|
||||
// VertexLayout_XYZ_Color_UV : VertexStruct_XYZ_Color_UV
|
||||
s_declarations[VertexLayout_XYZ_Color_UV] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::XYZ_Color_UV : VertexStruct_XYZ_Color_UV
|
||||
s_declarations[UnderlyingCast(VertexLayout::XYZ_Color_UV)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Color,
|
||||
ComponentType_Color,
|
||||
VertexComponent::Color,
|
||||
ComponentType::Color,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_TexCoord,
|
||||
ComponentType_Float2,
|
||||
VertexComponent::TexCoord,
|
||||
ComponentType::Float2,
|
||||
0
|
||||
},
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XYZ_Color_UV]->GetStride() == sizeof(VertexStruct_XYZ_Color_UV), "Invalid stride for declaration VertexLayout_XYZ_Color_UV");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XYZ_Color_UV)]->GetStride() == sizeof(VertexStruct_XYZ_Color_UV), "Invalid stride for declaration VertexLayout::XYZ_Color_UV");
|
||||
|
||||
// VertexLayout_XYZ_Normal : VertexStruct_XYZ_Normal
|
||||
s_declarations[VertexLayout_XYZ_Normal] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::XYZ_Normal : VertexStruct_XYZ_Normal
|
||||
s_declarations[UnderlyingCast(VertexLayout::XYZ_Normal)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Normal,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Normal,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
}
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XYZ_Normal]->GetStride() == sizeof(VertexStruct_XYZ_Normal), "Invalid stride for declaration VertexLayout_XYZ_Normal");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XYZ_Normal)]->GetStride() == sizeof(VertexStruct_XYZ_Normal), "Invalid stride for declaration VertexLayout::XYZ_Normal");
|
||||
|
||||
// VertexLayout_XYZ_Normal_UV : VertexStruct_XYZ_Normal_UV
|
||||
s_declarations[VertexLayout_XYZ_Normal_UV] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::XYZ_Normal_UV : VertexStruct_XYZ_Normal_UV
|
||||
s_declarations[UnderlyingCast(VertexLayout::XYZ_Normal_UV)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Normal,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Normal,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_TexCoord,
|
||||
ComponentType_Float2,
|
||||
VertexComponent::TexCoord,
|
||||
ComponentType::Float2,
|
||||
0
|
||||
}
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XYZ_Normal_UV]->GetStride() == sizeof(VertexStruct_XYZ_Normal_UV), "Invalid stride for declaration VertexLayout_XYZ_Normal_UV");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XYZ_Normal_UV)]->GetStride() == sizeof(VertexStruct_XYZ_Normal_UV), "Invalid stride for declaration VertexLayout::XYZ_Normal_UV");
|
||||
|
||||
// VertexLayout_XYZ_Normal_UV_Tangent : VertexStruct_XYZ_Normal_UV_Tangent
|
||||
s_declarations[VertexLayout_XYZ_Normal_UV_Tangent] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::XYZ_Normal_UV_Tangent : VertexStruct_XYZ_Normal_UV_Tangent
|
||||
s_declarations[UnderlyingCast(VertexLayout::XYZ_Normal_UV_Tangent)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Normal,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Normal,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_TexCoord,
|
||||
ComponentType_Float2,
|
||||
VertexComponent::TexCoord,
|
||||
ComponentType::Float2,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Tangent,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Tangent,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
}
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XYZ_Normal_UV_Tangent]->GetStride() == sizeof(VertexStruct_XYZ_Normal_UV_Tangent), "Invalid stride for declaration VertexLayout_XYZ_Normal_UV_Tangent");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XYZ_Normal_UV_Tangent)]->GetStride() == sizeof(VertexStruct_XYZ_Normal_UV_Tangent), "Invalid stride for declaration VertexLayout::XYZ_Normal_UV_Tangent");
|
||||
|
||||
// VertexLayout_XYZ_Normal_UV_Tangent_Skinning : VertexStruct_XYZ_Normal_UV_Tangent_Skinning
|
||||
s_declarations[VertexLayout_XYZ_Normal_UV_Tangent_Skinning] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::XYZ_Normal_UV_Tangent_Skinning : VertexStruct_XYZ_Normal_UV_Tangent_Skinning
|
||||
s_declarations[UnderlyingCast(VertexLayout::XYZ_Normal_UV_Tangent_Skinning)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Normal,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Normal,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_TexCoord,
|
||||
ComponentType_Float2,
|
||||
VertexComponent::TexCoord,
|
||||
ComponentType::Float2,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Tangent,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Tangent,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Userdata,
|
||||
ComponentType_Int1,
|
||||
VertexComponent::Userdata,
|
||||
ComponentType::Int1,
|
||||
0 // Weight count
|
||||
},
|
||||
{
|
||||
VertexComponent_Userdata,
|
||||
ComponentType_Float4,
|
||||
VertexComponent::Userdata,
|
||||
ComponentType::Float4,
|
||||
1 // Weights
|
||||
},
|
||||
{
|
||||
VertexComponent_Userdata,
|
||||
ComponentType_Int4,
|
||||
VertexComponent::Userdata,
|
||||
ComponentType::Int4,
|
||||
2 // Joint indexes
|
||||
},
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XYZ_Normal_UV_Tangent_Skinning]->GetStride() == sizeof(VertexStruct_XYZ_Normal_UV_Tangent_Skinning), "Invalid stride for declaration VertexLayout_XYZ_Normal_UV_Tangent_Skinning");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XYZ_Normal_UV_Tangent_Skinning)]->GetStride() == sizeof(VertexStruct_XYZ_Normal_UV_Tangent_Skinning), "Invalid stride for declaration VertexLayout::XYZ_Normal_UV_Tangent_Skinning");
|
||||
|
||||
// VertexLayout_XYZ_UV : VertexStruct_XYZ_UV
|
||||
s_declarations[VertexLayout_XYZ_UV] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::XYZ_UV : VertexStruct_XYZ_UV
|
||||
s_declarations[UnderlyingCast(VertexLayout::XYZ_UV)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Position,
|
||||
ComponentType_Float3,
|
||||
VertexComponent::Position,
|
||||
ComponentType::Float3,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_TexCoord,
|
||||
ComponentType_Float2,
|
||||
VertexComponent::TexCoord,
|
||||
ComponentType::Float2,
|
||||
0
|
||||
}
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_XYZ_UV]->GetStride() == sizeof(VertexStruct_XYZ_UV), "Invalid stride for declaration VertexLayout_XYZ_UV");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::XYZ_UV)]->GetStride() == sizeof(VertexStruct_XYZ_UV), "Invalid stride for declaration VertexLayout::XYZ_UV");
|
||||
|
||||
// VertexLayout_Matrix4 : Matrix4f
|
||||
s_declarations[VertexLayout_Matrix4] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
// VertexLayout::Matrix4 : Matrix4f
|
||||
s_declarations[UnderlyingCast(VertexLayout::Matrix4)] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
VertexComponent_Userdata,
|
||||
ComponentType_Float4,
|
||||
VertexComponent::Userdata,
|
||||
ComponentType::Float4,
|
||||
0
|
||||
},
|
||||
{
|
||||
VertexComponent_Userdata,
|
||||
ComponentType_Float4,
|
||||
VertexComponent::Userdata,
|
||||
ComponentType::Float4,
|
||||
1
|
||||
},
|
||||
{
|
||||
VertexComponent_Userdata,
|
||||
ComponentType_Float4,
|
||||
VertexComponent::Userdata,
|
||||
ComponentType::Float4,
|
||||
2
|
||||
},
|
||||
{
|
||||
VertexComponent_Userdata,
|
||||
ComponentType_Float4,
|
||||
VertexComponent::Userdata,
|
||||
ComponentType::Float4,
|
||||
3
|
||||
}
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout_Matrix4]->GetStride() == sizeof(Matrix4f), "Invalid stride for declaration VertexLayout_Matrix4");
|
||||
NazaraAssert(s_declarations[UnderlyingCast(VertexLayout::Matrix4)]->GetStride() == sizeof(Matrix4f), "Invalid stride for declaration VertexLayout::Matrix4");
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
@@ -359,11 +353,8 @@ namespace Nz
|
||||
|
||||
void VertexDeclaration::Uninitialize()
|
||||
{
|
||||
VertexDeclarationLibrary::Uninitialize();
|
||||
|
||||
s_declarations.fill(nullptr);
|
||||
}
|
||||
|
||||
std::array<VertexDeclarationRef, VertexLayout_Max + 1> VertexDeclaration::s_declarations;
|
||||
VertexDeclarationLibrary::LibraryMap VertexDeclaration::s_library;
|
||||
std::array<std::shared_ptr<VertexDeclaration>, VertexLayoutCount> VertexDeclaration::s_declarations;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user