gpu: convert *opaque -> opaque for CommandBuffer

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-29 22:28:18 -07:00 committed by Stephen Gutekanst
parent 1714f43e1f
commit e15cb4009a
4 changed files with 11 additions and 11 deletions

View file

@ -1,16 +1,16 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
const Impl = @import("interface.zig").Impl;
pub const CommandBuffer = *opaque {
pub inline fn setLabel(command_buffer: CommandBuffer, label: [*:0]const u8) void {
pub const CommandBuffer = opaque {
pub inline fn setLabel(command_buffer: *CommandBuffer, label: [*:0]const u8) void {
Impl.commandBufferSetLabel(command_buffer, label);
}
pub inline fn reference(command_buffer: CommandBuffer) void {
pub inline fn reference(command_buffer: *CommandBuffer) void {
Impl.commandBufferReference(command_buffer);
}
pub inline fn release(command_buffer: CommandBuffer) void {
pub inline fn release(command_buffer: *CommandBuffer) void {
Impl.commandBufferRelease(command_buffer);
}
};