From 1d174eb25dc876390676c656efd738a44139c174 Mon Sep 17 00:00:00 2001 From: Jinlei Li Date: Fri, 13 Jan 2023 09:00:59 +0800 Subject: [PATCH] Update wgpu-types/src/lib.rs Co-authored-by: Connor Fitzgerald --- wgpu-types/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 6c8416d3831..afbf7927f58 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -4364,8 +4364,11 @@ pub struct TextureDescriptor { pub format: TextureFormat, /// Allowed usages of the texture. If used in other ways, the operation will panic. pub usage: TextureUsages, - /// Specifies what view format values will be allowed when calling create_view() on this texture. - /// Note: currenly, only srgb-ness is allowed. + /// Specifies what view formats will be allowed when calling create_view() on this texture. + /// + /// View formats of the same format as the texture are always allowed. + /// + /// Note: currently, only the srgb-ness is allowed to change. (ex: Rgba8Unorm texture + Rgba8UnormSrgb view) pub view_formats: V, }