gpu: add BindGroup.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 16:42:25 -07:00 committed by Stephen Gutekanst
parent bbd058f23e
commit 9398df0211
2 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,7 @@
const Buffer = @import("Buffer.zig");
const Sampler = @import("Sampler.zig");
const TextureView = @import("TextureView.zig");
const BindGroupLayout = @import("BindGroupLayout.zig");
const BindGroup = @This();
@ -36,10 +37,17 @@ pub const Entry = struct {
texture_view: TextureView,
};
pub const Descriptor = struct {
label: ?[*:0]const u8 = null,
layout: BindGroupLayout,
entries: []const Entry,
};
test "syntax" {
_ = VTable;
_ = reference;
_ = release;
_ = setLabel;
_ = Entry;
_ = Descriptor;
}

View file

@ -57,14 +57,6 @@ typedef struct WGPUDawnTogglesDeviceDescriptor {
typedef struct WGPUBindGroupDescriptor {
WGPUChainedStruct const * nextInChain;
char const * label;
WGPUBindGroupLayout layout;
uint32_t entryCount;
WGPUBindGroupEntry const * entries;
} WGPUBindGroupDescriptor;
typedef struct WGPUComputePassDescriptor {
WGPUChainedStruct const * nextInChain;
char const * label;