gpu: implement Dawn queueSubmit

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:57:47 -07:00 committed by Stephen Gutekanst
parent aa1a13eddb
commit 604c47400b

View file

@ -731,10 +731,11 @@ pub const Interface = gpu.Interface(struct {
} }
pub inline fn queueSubmit(queue: *gpu.Queue, command_count: u32, commands: [*]*gpu.CommandBuffer) void { pub inline fn queueSubmit(queue: *gpu.Queue, command_count: u32, commands: [*]*gpu.CommandBuffer) void {
_ = queue; procs.queueSubmit.?(
_ = command_count; @ptrCast(c.WGPUQueue, queue),
_ = commands; command_count,
unreachable; @ptrCast([*]c.WGPUCommandBuffer, commands),
);
} }
pub inline fn queueWriteBuffer(queue: *gpu.Queue, buffer: *gpu.Buffer, buffer_offset: u64, data: *anyopaque, size: usize) void { pub inline fn queueWriteBuffer(queue: *gpu.Queue, buffer: *gpu.Buffer, buffer_offset: u64, data: *anyopaque, size: usize) void {