File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5601,6 +5601,7 @@ bitflags::bitflags! {
5601
5601
/// Allows a texture to be a [`BindingType::StorageTexture`] in a bind group.
5602
5602
const STORAGE_BINDING = 1 << 3 ;
5603
5603
/// Allows a texture to be an output attachment of a render pass.
5604
+ /// NOTE: Consider adding ['TextureUsages::TRANSIENT'] if the contents are not reused.
5604
5605
const RENDER_ATTACHMENT = 1 << 4 ;
5605
5606
5606
5607
//
@@ -5610,7 +5611,9 @@ bitflags::bitflags! {
5610
5611
//
5611
5612
/// Allows a texture to be used with image atomics. Requires [`Features::TEXTURE_ATOMIC`].
5612
5613
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`]
5614
5617
const TRANSIENT = 1 << 17 ;
5615
5618
}
5616
5619
}
You can’t perform that action at this time.
0 commit comments