gpu: update defaults/optionality for TextureDescriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-27 00:39:27 -07:00 committed by Stephen Gutekanst
parent d67a726342
commit a907b8e04e

View file

@ -231,11 +231,11 @@ pub const TextureDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
usage: TextureUsageFlags,
dimension: TextureDimension,
dimension: TextureDimension = .dimension_2d,
size: Extent3D,
format: TextureFormat,
mip_level_count: u32,
sample_count: u32,
view_format_count: u32,
mip_level_count: u32 = 1,
sample_count: u32 = 1,
view_format_count: u32 = 0,
view_formats: [*]const TextureFormat,
};