gpu: convert RenderBundleEncoder from enum(usize) to *opaque

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 14:55:00 -07:00 committed by Stephen Gutekanst
parent 8932f53841
commit 4ff2e96efd

View file

@ -1,13 +1,9 @@
const ChainedStruct = @import("types.zig").ChainedStruct; const ChainedStruct = @import("types.zig").ChainedStruct;
const Texture = @import("texture.zig").Texture; const Texture = @import("texture.zig").Texture;
pub const RenderBundleEncoder = enum(usize) { pub const RenderBundleEncoder = *opaque {};
_,
// TODO: verify there is a use case for nullable value of this type. pub const RenderBundleEncoderDescriptor = extern struct {
pub const none: RenderBundleEncoder = @intToEnum(RenderBundleEncoder, 0);
pub const Descriptor = extern struct {
next_in_chain: *const ChainedStruct, next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null, label: ?[*:0]const u8 = null,
color_formats_count: u32, color_formats_count: u32,
@ -16,5 +12,4 @@ pub const RenderBundleEncoder = enum(usize) {
sample_count: u32, sample_count: u32,
depth_read_only: bool, depth_read_only: bool,
stencil_read_only: bool, stencil_read_only: bool,
};
}; };