Fix formatting & cmake

This commit is contained in:
wheremyfoodat 2023-07-01 22:35:07 +03:00
parent ca89909c00
commit 1ac3a474da
4 changed files with 8 additions and 5 deletions

View file

@ -28,7 +28,8 @@ struct PicaVertex {
};
PicaVertex() {}
};
//Float is used here instead of Floats::f24 to ensure that Floats::f24 is properly sized for direct interpretations as a float by the render backend
// Float is used here instead of Floats::f24 to ensure that Floats::f24 is properly sized for direct interpretations as a float by the render backend
#define ASSERT_POS(member, pos) static_assert(offsetof(PicaVertex, s.member) == pos * sizeof(float), "PicaVertex struct is broken!");
ASSERT_POS(positions, 0)