Files
Seele/src/Engine/Graphics/MeshData.h
T

19 lines
362 B
C++
Raw Normal View History

2024-06-09 10:44:24 +02:00
#pragma once
#include "Math/AABB.h"
2024-06-09 12:20:04 +02:00
namespace Seele {
2025-04-14 22:26:33 +02:00
struct PoolRange {
uint32 offset;
uint32 size;
};
2024-06-09 12:20:04 +02:00
struct MeshData {
2024-06-09 10:44:24 +02:00
AABB bounding;
2025-04-14 22:26:33 +02:00
PoolRange meshletRange;
2024-07-08 13:46:49 +02:00
// offset into the global index buffer
2025-04-14 22:26:33 +02:00
PoolRange indicesRange;
2024-06-09 10:44:24 +02:00
};
2024-06-09 12:20:04 +02:00
struct InstanceData {
2024-06-09 10:44:24 +02:00
Matrix4 transformMatrix;
Matrix4 inverseTransformMatrix;
};
2024-06-09 12:20:04 +02:00
} // namespace Seele