examples: make sure some structs has guaranteed in-memory layout
This commit is contained in:
parent
4e47477e9a
commit
288299b88b
13 changed files with 14 additions and 14 deletions
|
|
@ -10,4 +10,4 @@ pub const module = ecs.Module(.{
|
|||
// with renderer components like `.geometry` and render them for example!
|
||||
});
|
||||
|
||||
pub const Vec3 = struct { x: f32, y: f32, z: f32 };
|
||||
pub const Vec3 = extern struct { x: f32, y: f32, z: f32 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue