gpu: implement Device.createBuffer

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-18 16:00:24 -07:00 committed by Stephen Gutekanst
parent 13fcf8aac5
commit 155c291c8e
3 changed files with 17 additions and 3 deletions

View file

@ -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,