gpu: correct Queue.submit parameter constness

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-10 22:00:54 -07:00 committed by Stephen Gutekanst
parent 14b28600af
commit 7c09b27905
4 changed files with 7 additions and 6 deletions

View file

@ -738,11 +738,11 @@ pub const Interface = struct {
procs.queueSetLabel.?(@ptrCast(c.WGPUQueue, queue), label);
}
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: [*]*const gpu.CommandBuffer) void {
procs.queueSubmit.?(
@ptrCast(c.WGPUQueue, queue),
command_count,
@ptrCast([*]c.WGPUCommandBuffer, commands),
@ptrCast([*]const c.WGPUCommandBuffer, commands),
);
}