gpu: internalize RenderBundle types

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-29 23:54:51 -07:00 committed by Stephen Gutekanst
parent 836c46cc6c
commit 0fac1d9336
3 changed files with 10 additions and 10 deletions

View file

@ -2,6 +2,11 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
const Impl = @import("interface.zig").Impl;
pub const RenderBundle = opaque {
pub const Descriptor = extern struct {
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
};
pub inline fn reference(render_bundle: *RenderBundle) void {
Impl.renderBundleReference(render_bundle);
}
@ -10,8 +15,3 @@ pub const RenderBundle = opaque {
Impl.renderBundleRelease(render_bundle);
}
};
pub const RenderBundleDescriptor = extern struct {
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
};