21 lines
683 B
Zig
21 lines
683 B
Zig
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 {
|
|
Impl.commandBufferSetLabel(command_buffer, label);
|
|
}
|
|
|
|
pub inline fn reference(command_buffer: *CommandBuffer) void {
|
|
Impl.commandBufferReference(command_buffer);
|
|
}
|
|
|
|
pub inline fn release(command_buffer: *CommandBuffer) void {
|
|
Impl.commandBufferRelease(command_buffer);
|
|
}
|
|
};
|
|
|
|
pub const CommandBufferDescriptor = extern struct {
|
|
next_in_chain: ?*const ChainedStruct = null,
|
|
label: ?[*:0]const u8 = null,
|
|
};
|