gpu: correctly handle null RenderPipeline.Descriptor transitive values
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f5e6976937
commit
4e31e015a4
3 changed files with 32 additions and 30 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue