gpu: correct implementation invocations
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4f91682bc2
commit
39ed9b5822
25 changed files with 638 additions and 638 deletions
|
|
@ -5,39 +5,39 @@ const ImageCopyTexture = @import("types.zig").ImageCopyTexture;
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
const Extent3D = @import("types.zig").Extent3D;
|
||||
const CopyTextureForBrowserOptions = @import("types.zig").CopyTextureForBrowserOptions;
|
||||
const impl = @import("interface.zig").impl;
|
||||
const Impl = @import("interface.zig").Impl;
|
||||
|
||||
pub const Queue = *opaque {
|
||||
pub inline fn copyTextureForBrowser(queue: Queue, source: *const ImageCopyTexture, destination: *const ImageCopyTexture, copy_size: *const Extent3D, options: *const CopyTextureForBrowserOptions) void {
|
||||
impl.queueCopyTextureForBrowser(queue, source, destination, copy_size, options);
|
||||
Impl.queueCopyTextureForBrowser(queue, source, destination, copy_size, options);
|
||||
}
|
||||
|
||||
pub inline fn onSubmittedWorkDone(queue: Queue, signal_value: u64, callback: QueueWorkDoneCallback, userdata: *anyopaque) void {
|
||||
impl.queueOnSubmittedWorkDone(queue, signal_value, callback, userdata);
|
||||
Impl.queueOnSubmittedWorkDone(queue, signal_value, callback, userdata);
|
||||
}
|
||||
|
||||
pub inline fn setLabel(queue: Queue, label: [*:0]const u8) void {
|
||||
impl.queueSetLabel(queue, label);
|
||||
Impl.queueSetLabel(queue, label);
|
||||
}
|
||||
|
||||
pub inline fn submit(queue: Queue, command_count: u32, commands: [*]CommandBuffer) void {
|
||||
impl.queueSubmit(queue, command_count, commands);
|
||||
Impl.queueSubmit(queue, command_count, commands);
|
||||
}
|
||||
|
||||
pub inline fn writeBuffer(queue: Queue, buffer: Buffer, buffer_offset: u64, data: *anyopaque, size: usize) void {
|
||||
impl.queueWriteBuffer(queue, buffer, buffer_offset, data, size);
|
||||
Impl.queueWriteBuffer(queue, buffer, buffer_offset, data, size);
|
||||
}
|
||||
|
||||
pub inline fn writeTexture(queue: Queue, data: *anyopaque, data_size: usize, data_layout: *const TextureDataLayout, write_size: *const Extent3D) void {
|
||||
impl.queueWriteTexture(queue, data, data_size, data_layout, write_size);
|
||||
Impl.queueWriteTexture(queue, data, data_size, data_layout, write_size);
|
||||
}
|
||||
|
||||
pub inline fn reference(queue: Queue) void {
|
||||
impl.queueReference(queue);
|
||||
Impl.queueReference(queue);
|
||||
}
|
||||
|
||||
pub inline fn release(queue: Queue) void {
|
||||
impl.queueRelease(queue);
|
||||
Impl.queueRelease(queue);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue