Merge pull request #83169 from clayjohn/Mesh-format

Fix a few cases where surface format is still 32 bits
This commit is contained in:
Rémi Verschelde 2023-10-11 23:54:40 +02:00 committed by GitHub
commit f2f6f99241
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ class ImmediateMesh : public Mesh {
Ref<Material> material;
bool vertex_2d = false;
int array_len = 0;
uint32_t format = 0;
uint64_t format = 0;
AABB aabb;
};

View file

@ -301,7 +301,7 @@ class ArrayMesh : public Mesh {
private:
struct Surface {
uint32_t format = 0;
uint64_t format = 0;
int array_length = 0;
int index_array_length = 0;
PrimitiveType primitive = PrimitiveType::PRIMITIVE_MAX;