From ed72b1e8822a5454c2a0ff1ad4f3fb7b07c832fe Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Jul 2022 09:44:07 -0700 Subject: [PATCH] gpu: update defaults/optionality for PrimitiveState Signed-off-by: Stephen Gutekanst --- gpu/src/types.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gpu/src/types.zig b/gpu/src/types.zig index de8e2012..ccfcc827 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -119,7 +119,7 @@ pub const CreatePipelineAsyncStatus = enum(u32) { }; pub const CullMode = enum(u32) { - undef = 0x00000000, + none = 0x00000000, front = 0x00000001, back = 0x00000002, }; @@ -503,10 +503,10 @@ pub const PrimitiveDepthClipControl = extern struct { pub const PrimitiveState = extern struct { next_in_chain: *const ChainedStruct, - topology: PrimitiveTopology, - strip_index_format: IndexFormat, - front_face: FrontFace, - cull_mode: CullMode, + topology: PrimitiveTopology = .triangle_list, + strip_index_format: IndexFormat = .undef, + front_face: FrontFace = .ccw, + cull_mode: CullMode = .none, }; pub const RenderPassDescriptorMaxDrawCount = extern struct {