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
|
|
@ -183,8 +183,7 @@ pub const Texture = opaque {
|
|||
mip_level_count: u32 = 1,
|
||||
sample_count: u32 = 1,
|
||||
view_format_count: u32 = 0,
|
||||
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
|
||||
view_formats: ?[*]const Format,
|
||||
view_formats: ?[*]const Format = null,
|
||||
};
|
||||
|
||||
pub inline fn createView(texture: *Texture, descriptor: ?*const TextureView.Descriptor) *TextureView {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue