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
|
|
@ -11,9 +11,8 @@ pub const RenderBundleEncoder = opaque {
|
|||
pub const Descriptor = extern struct {
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
label: ?[*:0]const u8 = null,
|
||||
color_formats_count: u32,
|
||||
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
|
||||
color_formats: ?[*]const Texture.Format,
|
||||
color_formats_count: u32 = 0,
|
||||
color_formats: ?[*]const Texture.Format = null,
|
||||
depth_stencil_format: Texture.Format = .undef,
|
||||
sample_count: u32 = 1,
|
||||
depth_read_only: bool = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue