gpu: implement Device.createBuffer
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
13fcf8aac5
commit
155c291c8e
3 changed files with 17 additions and 3 deletions
|
|
@ -78,7 +78,8 @@ pub inline fn unmap(buf: Buffer) void {
|
|||
buf.vtable.unmap(buf.ptr);
|
||||
}
|
||||
|
||||
pub const Descriptor = struct {
|
||||
pub const Descriptor = extern struct {
|
||||
reserved: ?*anyopaque = null,
|
||||
label: ?[*:0]const u8 = null,
|
||||
usage: BufferUsage,
|
||||
size: usize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue