gpu: implement CommandBuffer methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2b43567b3f
commit
b237fb55c2
1 changed files with 10 additions and 6 deletions
|
|
@ -1,14 +1,18 @@
|
||||||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
|
const impl = @import("interface.zig").impl;
|
||||||
|
|
||||||
pub const CommandBuffer = *opaque {
|
pub const CommandBuffer = *opaque {
|
||||||
// TODO
|
pub inline fn setLabel(command_buffer: CommandBuffer, label: [*:0]const u8) void {
|
||||||
// pub inline fn commandBufferSetLabel(command_buffer: gpu.CommandBuffer, label: [*:0]const u8) void {
|
impl.commandBufferSetLabel(command_buffer, label);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn reference(command_buffer: CommandBuffer) void {
|
||||||
// pub inline fn commandBufferReference(command_buffer: gpu.CommandBuffer) void {
|
impl.commandBufferReference(command_buffer);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn release(command_buffer: CommandBuffer) void {
|
||||||
// pub inline fn commandBufferRelease(command_buffer: gpu.CommandBuffer) void {
|
impl.commandBufferRelease(command_buffer);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const CommandBufferDescriptor = extern struct {
|
pub const CommandBufferDescriptor = extern struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue