Skip to content

Commit fc854d7

Browse files
committed
Improve TextureUsages docs
1 parent faea1c3 commit fc854d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wgpu-types/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5601,6 +5601,7 @@ bitflags::bitflags! {
56015601
/// Allows a texture to be a [`BindingType::StorageTexture`] in a bind group.
56025602
const STORAGE_BINDING = 1 << 3;
56035603
/// Allows a texture to be an output attachment of a render pass.
5604+
/// NOTE: Consider adding ['TextureUsages::TRANSIENT'] if the contents are not reused.
56045605
const RENDER_ATTACHMENT = 1 << 4;
56055606

56065607
//
@@ -5610,7 +5611,9 @@ bitflags::bitflags! {
56105611
//
56115612
/// Allows a texture to be used with image atomics. Requires [`Features::TEXTURE_ATOMIC`].
56125613
const STORAGE_ATOMIC = 1 << 16;
5613-
/// Allows a texture to be transient. No-op on platforms other than Vulkan and Metal.
5614+
/// Hints to the backend that the contents of this texture will not be used in another pass to reduce memory usage and bandwidth.
5615+
/// No-op on platforms other than Vulkan and Metal.
5616+
/// Incompatible with ALL other usages except [`TextureUsages::RENDER_ATTACHMENT`]
56145617
const TRANSIENT = 1 << 17;
56155618
}
56165619
}

0 commit comments

Comments
 (0)