gpu: correct default TextureView.Descriptor.format value
According to kangz `WGPUTextureFormat_Undefined` is the correct default value for `TextureView.Descriptor.format`. According to the spec, the default should be the associated _Texture_'s descriptor.format, but it seems Dawn internally handles this when set to `Undefined` - we will take the same approach. https://matrix.to/#/!MFogdGJfnZLrDmgkBN:matrix.org/$eVPXZMzewxJMZ_25K5jVV2N6SVriMUovkfXZI62Kq-k?via=matrix.org&via=mozilla.org&via=zinz.dev Helps hexops/mach#182 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
118a3468ae
commit
c535e041bd
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ pub inline fn setLabel(texture_view: TextureView, label: [:0]const u8) void {
|
|||
|
||||
pub const Descriptor = struct {
|
||||
label: ?[*:0]const u8 = null,
|
||||
format: Texture.Format,
|
||||
format: Texture.Format = .none,
|
||||
dimension: TextureView.Dimension,
|
||||
base_mip_level: u32 = 0,
|
||||
mip_level_count: u32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue