Struct TextureStreamDemand
pub struct TextureStreamDemand {Show 16 fields
pub semantic_id: u64,
pub width: u32,
pub height: u32,
pub mip_count: u8,
pub block_width: u8,
pub block_height: u8,
pub bytes_per_block: u8,
pub desired_finest_mip: u8,
pub resident_finest_mip: Option<u8>,
pub resident_bytes: u64,
pub requested: bool,
pub pinned: bool,
pub visible: bool,
pub importance: u16,
pub distance_key: u32,
pub last_used_frame: u64,
}Expand description
One texture’s immutable identity, current residency, and current-frame demand.
resident_finest_mip follows the usual mip numbering: zero is full resolution and larger
values are progressively coarser. If it is Some(r), every mip r..mip_count is resident;
if it is None, no mip is resident. desired_finest_mip requests every mip from that level
through the coarsest level. Set it to mip_count - 1 for a coarse presentation mip only.
Fields§
§semantic_id: u64Stable semantic/resource identity used for deterministic tie-breaking.
width: u32§height: u32§mip_count: u8§block_width: u8Compressed block width in texels (use 1 for uncompressed formats).
block_height: u8Compressed block height in texels (use 1 for uncompressed formats).
bytes_per_block: u8Bytes in one compression block (or bytes per texel for 1x1 formats).
desired_finest_mip: u8§resident_finest_mip: Option<u8>§resident_bytes: u64Bytes currently resident for this texture, including all resident mips.
requested: boolThis texture is in the requested working set and should gain/retain desired mips.
pinned: bool§visible: bool§importance: u16Authored importance; larger values are serviced first.
distance_key: u32Monotonic fixed-point distance key; smaller values are serviced first.
last_used_frame: u64Frame in which this texture was last used; newer use wins request priority.
Trait Implementations§
§impl Clone for TextureStreamDemand
impl Clone for TextureStreamDemand
§fn clone(&self) -> TextureStreamDemand
fn clone(&self) -> TextureStreamDemand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TextureStreamDemand
§impl Debug for TextureStreamDemand
impl Debug for TextureStreamDemand
impl Eq for TextureStreamDemand
§impl PartialEq for TextureStreamDemand
impl PartialEq for TextureStreamDemand
impl StructuralPartialEq for TextureStreamDemand
Auto Trait Implementations§
impl Freeze for TextureStreamDemand
impl RefUnwindSafe for TextureStreamDemand
impl Send for TextureStreamDemand
impl Sync for TextureStreamDemand
impl Unpin for TextureStreamDemand
impl UnsafeUnpin for TextureStreamDemand
impl UnwindSafe for TextureStreamDemand
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more