gpu: adopt new dawn.json policy for optionality of slice fields, default zero values
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2b354f9226
commit
726bdf3fba
13 changed files with 40 additions and 63 deletions
|
|
@ -12,12 +12,12 @@ pub const RenderPipeline = opaque {
|
|||
pub const Descriptor = extern struct {
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
label: ?[*:0]const u8 = null,
|
||||
layout: ?*PipelineLayout,
|
||||
layout: ?*PipelineLayout = null,
|
||||
vertex: VertexState,
|
||||
primitive: PrimitiveState,
|
||||
depth_stencil: ?*const DepthStencilState,
|
||||
multisample: MultisampleState,
|
||||
fragment: ?*const FragmentState,
|
||||
primitive: PrimitiveState = .{},
|
||||
depth_stencil: ?*const DepthStencilState = null,
|
||||
multisample: MultisampleState = .{},
|
||||
fragment: ?*const FragmentState = null,
|
||||
};
|
||||
|
||||
pub inline fn getBindGroupLayout(render_pipeline: *RenderPipeline, group_index: u32) *BindGroupLayout {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue