gpu: add Buffer.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6bca2107fd
commit
cfeea2b415
2 changed files with 8 additions and 8 deletions
|
|
@ -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 {
|
typedef struct WGPUCommandBufferDescriptor {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
label: ?[*:0]const u8 = null,
|
label: ?[*:0]const u8 = null,
|
||||||
|
|
|
||||||
|
|
@ -56,4 +56,12 @@ pub const Buffer = enum(usize) {
|
||||||
has_dynamic_offset: bool = false,
|
has_dynamic_offset: bool = false,
|
||||||
min_binding_size: u64 = 0,
|
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,
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue