Switch index/vertex count to UInt32

This commit is contained in:
SirLynix
2022-10-31 19:54:25 +01:00
parent dc6ce8427c
commit 6b8be23fa0
28 changed files with 129 additions and 128 deletions

View File

@@ -25,8 +25,8 @@ namespace Nz
VertexMapper mapper(*m_vertexBuffer);
SparsePtr<Vector3f> position = mapper.GetComponentPtr<Vector3f>(VertexComponent::Position);
UInt64 vertexCount = m_vertexBuffer->GetVertexCount();
for (UInt64 i = 0; i < vertexCount; ++i)
UInt32 vertexCount = m_vertexBuffer->GetVertexCount();
for (UInt32 i = 0; i < vertexCount; ++i)
*position++ -= offset;
m_aabb.x -= offset.x;
@@ -63,7 +63,7 @@ namespace Nz
return m_vertexBuffer;
}
UInt64 StaticMesh::GetVertexCount() const
UInt32 StaticMesh::GetVertexCount() const
{
return m_vertexBuffer->GetVertexCount();
}