gpu: add BindGroupLayout.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
13fcf98436
commit
7fa2bb3754
2 changed files with 7 additions and 7 deletions
|
|
@ -29,6 +29,12 @@ pub inline fn setLabel(group: BindGroupLayout, label: [:0]const u8) void {
|
|||
group.vtable.setLabel(group.ptr, label);
|
||||
}
|
||||
|
||||
pub const Descriptor = struct {
|
||||
label: ?[*:0]const u8 = null,
|
||||
entries: []const Entry,
|
||||
};
|
||||
|
||||
// TODO: can this be extern struct / ABI compatible?
|
||||
pub const Entry = struct {
|
||||
binding: u32,
|
||||
visibility: ShaderStage,
|
||||
|
|
@ -43,5 +49,6 @@ test "syntax" {
|
|||
_ = reference;
|
||||
_ = release;
|
||||
_ = setLabel;
|
||||
_ = Descriptor;
|
||||
_ = Entry;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,13 +57,6 @@ typedef struct WGPUDawnTogglesDeviceDescriptor {
|
|||
|
||||
|
||||
|
||||
typedef struct WGPUBindGroupLayoutDescriptor {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
char const * label;
|
||||
uint32_t entryCount;
|
||||
WGPUBindGroupLayoutEntry const * entries;
|
||||
} WGPUBindGroupLayoutDescriptor;
|
||||
|
||||
typedef struct WGPUComputePipelineDescriptor {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
char const * label;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue