diff --git a/gpu/src/Buffer.zig b/gpu/src/Buffer.zig index 5237bc35..15a5d8e2 100644 --- a/gpu/src/Buffer.zig +++ b/gpu/src/Buffer.zig @@ -49,6 +49,12 @@ pub const BindingType = enum(u32) { read_only_storage = 0x00000003, }; +pub const BindingLayout = struct { + type: BindingType, + has_dynamic_offset: bool, + min_binding_size: u64, +}; + test "syntax" { _ = VTable; _ = reference; @@ -57,4 +63,5 @@ test "syntax" { _ = setLabel; _ = Descriptor; _ = BindingType; + _ = BindingLayout; } diff --git a/gpu/src/structs.zig b/gpu/src/structs.zig index 05550291..239ab1b5 100644 --- a/gpu/src/structs.zig +++ b/gpu/src/structs.zig @@ -17,12 +17,6 @@ pub const BindGroupEntry = struct { texture_view: TextureView, }; -pub const BufferBindingLayout = struct { - type: Buffer.BindingType, - has_dynamic_offset: bool, - min_binding_size: u64, -}; - pub const CompilationMessage = struct { message: [:0]const u8, type: CompilationMessageType, @@ -47,7 +41,6 @@ pub const PrimitiveState = struct { test "syntax" { _ = BindGroupEntry; - _ = BufferBindingLayout; _ = CompilationMessage; _ = MultisampleState; _ = PrimitiveState;