gpu: add BindGroup.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
bbd058f23e
commit
9398df0211
2 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue