gpu: mirror more WebGPU spec default values (#249)

Helps hexops/mach#182
This commit is contained in:
PiergiorgioZagaria 2022-04-22 03:38:26 +02:00 committed by GitHub
parent 8df8b043ad
commit 4e3a58897b
Failed to generate hash of commit
3 changed files with 16 additions and 16 deletions

View file

@ -43,11 +43,11 @@ pub const Descriptor = struct {
reserved: ?*anyopaque = null,
label: ?[*:0]const u8 = null,
usage: Usage,
dimension: Dimension,
dimension: Dimension = .dimension_2d,
size: Extent3D,
format: Format,
mip_level_count: u32,
sample_count: u32,
mip_level_count: u32 = 1,
sample_count: u32 = 1,
view_formats: ?[]const Format = null,
};