pub enum IntermediateTexture<T = Texture, V = TextureView> {
Texture(PooledTexture<T, V>),
TooLarge {
width: u32,
height: u32,
max: u32,
},
}Expand description
The result of asking for an intermediate: a pooled texture, or the extent that was refused.
Variants§
Texture(PooledTexture<T, V>)
A texture at least the requested extent. Its allocation is quantized
up, so render into PooledTexture::requested_size, not size.
TooLarge
The request exceeded IntermediateTargets::max_texture_size on at
least one axis and nothing was allocated.
A layer too wide for one page has an answer that renders it —
page_bands — so reaching this
arm means the extent was asked for whole rather than by band.
Implementations§
Source§impl<T, V> IntermediateTexture<T, V>
impl<T, V> IntermediateTexture<T, V>
Sourcepub fn texture(&self) -> Option<&PooledTexture<T, V>>
pub fn texture(&self) -> Option<&PooledTexture<T, V>>
The pooled texture, or None for a refused request.
Sourcepub fn is_too_large(&self) -> bool
pub fn is_too_large(&self) -> bool
Whether the request was refused for exceeding the ceiling.
Trait Implementations§
Auto Trait Implementations§
impl<T, V> Freeze for IntermediateTexture<T, V>where
PooledTexture<T, V>: Freeze,
impl<T, V> RefUnwindSafe for IntermediateTexture<T, V>where
PooledTexture<T, V>: RefUnwindSafe,
impl<T, V> Send for IntermediateTexture<T, V>where
PooledTexture<T, V>: Send,
impl<T, V> Sync for IntermediateTexture<T, V>where
PooledTexture<T, V>: Sync,
impl<T, V> Unpin for IntermediateTexture<T, V>where
PooledTexture<T, V>: Unpin,
impl<T, V> UnsafeUnpin for IntermediateTexture<T, V>where
PooledTexture<T, V>: UnsafeUnpin,
impl<T, V> UnwindSafe for IntermediateTexture<T, V>where
PooledTexture<T, V>: UnwindSafe,
Blanket Implementations§
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
Mutably borrows from an owned value. Read more