2024-06-09 10:44:24 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include "Math/AABB.h"
|
2024-06-09 12:20:04 +02:00
|
|
|
namespace Seele {
|
|
|
|
|
struct MeshData {
|
2024-06-09 10:44:24 +02:00
|
|
|
AABB bounding;
|
|
|
|
|
uint32 numMeshlets = 0;
|
|
|
|
|
uint32 meshletOffset = 0;
|
2024-07-08 13:46:49 +02:00
|
|
|
// offset into the global index buffer
|
2024-06-09 10:44:24 +02:00
|
|
|
uint32 firstIndex = 0;
|
2024-07-08 13:46:49 +02:00
|
|
|
// number of indices in the global index buffer
|
2024-06-09 10:44:24 +02:00
|
|
|
uint32 numIndices = 0;
|
|
|
|
|
};
|
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
|