gpu: implement CommandBuffer methods

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-26 20:28:17 -07:00 committed by Stephen Gutekanst
parent 2b43567b3f
commit b237fb55c2

View file

@ -1,14 +1,18 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
const impl = @import("interface.zig").impl;
pub const CommandBuffer = *opaque {
// TODO
// pub inline fn commandBufferSetLabel(command_buffer: gpu.CommandBuffer, label: [*:0]const u8) void {
pub inline fn setLabel(command_buffer: CommandBuffer, label: [*:0]const u8) void {
impl.commandBufferSetLabel(command_buffer, label);
}
// TODO
// pub inline fn commandBufferReference(command_buffer: gpu.CommandBuffer) void {
pub inline fn reference(command_buffer: CommandBuffer) void {
impl.commandBufferReference(command_buffer);
}
// TODO
// pub inline fn commandBufferRelease(command_buffer: gpu.CommandBuffer) void {
pub inline fn release(command_buffer: CommandBuffer) void {
impl.commandBufferRelease(command_buffer);
}
};
pub const CommandBufferDescriptor = extern struct {