gpu: internalize CommandBuffer types

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-29 23:43:47 -07:00 committed by Stephen Gutekanst
parent 9ba109f659
commit 99ff21e992
3 changed files with 9 additions and 10 deletions

View file

@ -2,6 +2,11 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
const Impl = @import("interface.zig").Impl;
pub const CommandBuffer = opaque {
pub const Descriptor = extern struct {
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
};
pub inline fn setLabel(command_buffer: *CommandBuffer, label: [*:0]const u8) void {
Impl.commandBufferSetLabel(command_buffer, label);
}
@ -14,8 +19,3 @@ pub const CommandBuffer = opaque {
Impl.commandBufferRelease(command_buffer);
}
};
pub const CommandBufferDescriptor = extern struct {
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
};