Skip to content

Commit

Permalink
Update wgpu-types/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Connor Fitzgerald <[email protected]>
  • Loading branch information
jinleili and cwfitzgerald authored Jan 13, 2023
1 parent dcb04c1 commit 1d174eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wgpu-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4364,8 +4364,11 @@ pub struct TextureDescriptor<L, V> {
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,
}

Expand Down

0 comments on commit 1d174eb

Please sign in to comment.