diff --git a/gpu/src/render_pipeline.zig b/gpu/src/render_pipeline.zig index 90c28142..186d5c7a 100644 --- a/gpu/src/render_pipeline.zig +++ b/gpu/src/render_pipeline.zig @@ -6,20 +6,15 @@ const PrimitiveState = @import("types.zig").PrimitiveState; const FragmentState = @import("types.zig").FragmentState; const PipelineLayout = @import("pipeline_layout.zig").PipelineLayout; -pub const RenderPipeline = enum(usize) { - _, +pub const RenderPipeline = *opaque {}; - // TODO: verify there is a use case for nullable value of this type. - pub const none: RenderPipeline = @intToEnum(RenderPipeline, 0); - - pub const Descriptor = extern struct { - next_in_chain: *const ChainedStruct, - label: ?[*:0]const u8 = null, - layout: ?PipelineLayout, - vertex: VertexState, - primitive: PrimitiveState, - depth_stencil: ?*const DepthStencilState = null, // nullable - multisample: MultisampleState, - fragment: ?*const FragmentState = null, // nullable - }; +pub const RenderPipelineDescriptor = extern struct { + next_in_chain: *const ChainedStruct, + label: ?[*:0]const u8 = null, + layout: ?PipelineLayout, + vertex: VertexState, + primitive: PrimitiveState, + depth_stencil: ?*const DepthStencilState = null, // nullable + multisample: MultisampleState, + fragment: ?*const FragmentState = null, // nullable };