gpu: correct Queue.submit parameter constness
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
14b28600af
commit
7c09b27905
4 changed files with 7 additions and 6 deletions
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue