gpu: mirror more WebGPU spec default values (#249)
Helps hexops/mach#182
This commit is contained in:
parent
8df8b043ad
commit
4e3a58897b
3 changed files with 16 additions and 16 deletions
|
|
@ -29,11 +29,11 @@ pub const Descriptor = struct {
|
|||
label: ?[*:0]const u8 = null,
|
||||
format: Texture.Format,
|
||||
dimension: TextureView.Dimension,
|
||||
base_mip_level: u32,
|
||||
base_mip_level: u32 = 0,
|
||||
mip_level_count: u32,
|
||||
base_array_layer: u32,
|
||||
base_array_layer: u32 = 0,
|
||||
array_layer_count: u32,
|
||||
aspect: Texture.Aspect,
|
||||
aspect: Texture.Aspect = .all,
|
||||
};
|
||||
|
||||
pub const Dimension = enum(u32) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue