gpu: internalize CommandEncoder types

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

View file

@ -12,6 +12,11 @@ const Extent3D = @import("types.zig").Extent3D;
const Impl = @import("interface.zig").Impl;
pub const CommandEncoder = opaque {
pub const Descriptor = extern struct {
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
};
pub inline fn beginComputePass(command_encoder: *CommandEncoder, descriptor: ?*const ComputePassDescriptor) *ComputePassEncoder {
return Impl.commandEncoderBeginComputePass(command_encoder, descriptor);
}
@ -92,8 +97,3 @@ pub const CommandEncoder = opaque {
Impl.commandEncoderRelease(command_encoder);
}
};
pub const CommandEncoderDescriptor = extern struct {
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
};