gpu: add BindGroupLayout.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
26a29e1b2a
commit
5b66e3fbe0
2 changed files with 7 additions and 7 deletions
|
|
@ -1,10 +1,3 @@
|
||||||
pub const WGPUBindGroupLayoutDescriptor = extern struct {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
label: ?[*:0]const u8 = null,
|
|
||||||
entry_count: u32,
|
|
||||||
entries: [*]const BindGroupLayoutEntry,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const ColorTargetState = extern struct {
|
pub const ColorTargetState = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
format: TextureFormat,
|
format: TextureFormat,
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,11 @@ pub const BindGroupLayout = enum(usize) {
|
||||||
texture: Texture.BindingLayout,
|
texture: Texture.BindingLayout,
|
||||||
storage_texture: StorageTextureBindingLayout,
|
storage_texture: StorageTextureBindingLayout,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const Descriptor = extern struct {
|
||||||
|
next_in_chain: *const ChainedStruct,
|
||||||
|
label: ?[*:0]const u8 = null,
|
||||||
|
entry_count: u32,
|
||||||
|
entries: [*]const Entry,
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue