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
|
|
@ -16,7 +16,7 @@ const pixel_size = 8;
|
|||
const UniformBufferObject = struct {
|
||||
mat: zm.Mat,
|
||||
};
|
||||
const PostUniformBufferObject = struct {
|
||||
const PostUniformBufferObject = extern struct {
|
||||
width: u32,
|
||||
height: u32,
|
||||
pixel_size: u32 = pixel_size,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue