From 3761f37234bfa4da42f7b4364089f5ee9fbba48b Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 11 Mar 2022 15:49:34 -0700 Subject: [PATCH] gpu: move BufferBindingLayout -> Buffer.BindingLayout Signed-off-by: Stephen Gutekanst --- gpu/src/Buffer.zig | 7 +++++++ gpu/src/structs.zig | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) 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;