gpu: correctly handle null RenderPipeline.Descriptor transitive values

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 19:58:18 -07:00 committed by Stephen Gutekanst
parent f5e6976937
commit 4e31e015a4
3 changed files with 32 additions and 30 deletions

View file

@ -34,10 +34,10 @@ pub inline fn setLabel(pipeline: RenderPipeline, label: [:0]const u8) void {
pub const Descriptor = struct {
label: ?[*:0]const u8 = null,
layout: PipelineLayout,
layout: ?PipelineLayout,
vertex: VertexState,
primitive: PrimitiveState,
depth_stencil: *const DepthStencilState,
depth_stencil: ?*const DepthStencilState,
multisample: MultisampleState,
fragment: *const FragmentState,
};