gpu: improve ABI compatibility of BindGroupLayout.Entry

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-18 14:59:25 -07:00 committed by Stephen Gutekanst
parent d635bee216
commit 789f6291e4
2 changed files with 4 additions and 34 deletions

View file

@ -34,7 +34,8 @@ pub const Descriptor = struct {
entries: []const Entry,
};
pub const Entry = struct {
pub const Entry = extern struct {
reserved: ?*anyopaque = null,
binding: u32,
visibility: ShaderStage,
buffer: Buffer.BindingLayout,