Fix warnings

This commit is contained in:
Georg Hagen
2024-10-07 11:25:18 +02:00
parent cf2e24fcf1
commit c00e8a69e2

View File

@@ -100,7 +100,7 @@ namespace OpenVulkano::Scene
tinyusdz::Attribute uvAttr;
std::vector<tinyusdz::value::texcoord2f> uvs(geometry->vertexCount);
for (int i = 0; i < geometry->vertexCount; ++i)
for (uint32_t i = 0; i < geometry->vertexCount; ++i)
{
const Vertex& v = geometry->vertices[i];
pts[i].x = v.position.x;
@@ -115,7 +115,7 @@ namespace OpenVulkano::Scene
std::vector<int> counts(geometry->indexCount / 3, 3); // NOTE(vb): The value 3 is kind of arbitrary, but this array must be in the mesh!
mesh.faceVertexCounts.set_value(counts);
for (int i = 0; i < geometry->indexCount; ++i)
for (uint32_t i = 0; i < geometry->indexCount; ++i)
{
uint32_t index = GetIndexFromGeometry(geometry, i);
indices[i] = index;