gpu: add Buffer.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 01:03:36 -07:00 committed by Stephen Gutekanst
parent 6bca2107fd
commit cfeea2b415
2 changed files with 8 additions and 8 deletions

View file

@ -1,11 +1,3 @@
typedef struct WGPUBufferDescriptor {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
WGPUBufferUsageFlags usage;
size: u64,
mapped_at_creation: bool,
} WGPUBufferDescriptor;
typedef struct WGPUCommandBufferDescriptor {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,

View file

@ -56,4 +56,12 @@ pub const Buffer = enum(usize) {
has_dynamic_offset: bool = false,
min_binding_size: u64 = 0,
};
pub const Descriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
usage: Usage,
size: u64,
mapped_at_creation: bool,
};
};