Skip to content

Commit faea1c3

Browse files
committed
Move TextureUses::TRANSIENT to 1 << 12
1 parent 77bf9af commit faea1c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wgpu-types/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5649,6 +5649,8 @@ bitflags::bitflags! {
56495649
/// Image atomic enabled storage.
56505650
/// cbindgen:ignore
56515651
const STORAGE_ATOMIC = 1 << 11;
5652+
/// Transient texture that may not have any backing memory. Not a resource state stored in the trackers, only used for passing down usages to create_texture.
5653+
const TRANSIENT = 1 << 12;
56525654
/// The combination of states that a texture may be in _at the same time_.
56535655
/// cbindgen:ignore
56545656
const INCLUSIVE = Self::COPY_SRC.bits() | Self::RESOURCE.bits() | Self::DEPTH_STENCIL_READ.bits();
@@ -5662,12 +5664,10 @@ bitflags::bitflags! {
56625664
const ORDERED = Self::INCLUSIVE.bits() | Self::COLOR_TARGET.bits() | Self::DEPTH_STENCIL_WRITE.bits() | Self::STORAGE_READ_ONLY.bits();
56635665

56645666
/// Flag used by the wgpu-core texture tracker to say a texture is in different states for every sub-resource
5665-
const COMPLEX = 1 << 12;
5667+
const COMPLEX = 1 << 13;
56665668
/// Flag used by the wgpu-core texture tracker to say that the tracker does not know the state of the sub-resource.
56675669
/// This is different from UNINITIALIZED as that says the tracker does know, but the texture has not been initialized.
5668-
const UNKNOWN = 1 << 13;
5669-
/// Transient texture that may not have any backing memory. Not a resource state stored in the trackers, only used for passing down usages to create_texture.
5670-
const TRANSIENT = 1 << 14;
5670+
const UNKNOWN = 1 << 14;
56715671
}
56725672
}
56735673

0 commit comments

Comments
 (0)