pub struct TransientTexture {
pub label: &'static str,
pub width: u32,
pub height: u32,
pub depth: u32,
pub format: PixelFormat,
pub sample_count: u32,
pub array_layers: u32,
pub mip_levels: u32,
pub usage: TextureUsage,
pub clear: ClearValue,
}Expand description
One pooled transient, resolved against a concrete drawable extent. The backend translates this into its native texture descriptor; nothing here is backend-specific.
PartialEq but not Eq: the clear value is floats.
Fields§
§label: &'static strThe graph label, which is also how a feature reads the texture back out of the pool and how the barrier registry names it.
width: u32Width in pixels.
height: u32Height in pixels.
depth: u321 for a 2D texture, > 1 for a volume.
format: PixelFormatTexel format.
sample_count: u32MSAA sample count; 1 for non-multisample.
array_layers: u32Array layers; 1 for plain 2D.
mip_levels: u32Mip levels in the chain.
usage: TextureUsageHow passes bind the texture.
clear: ClearValueWhat the writing pass clears this target to. Carried through because
D3D12 bakes it into the resource at creation; see TextureDesc::clear.
Trait Implementations§
Source§impl Clone for TransientTexture
impl Clone for TransientTexture
Source§fn clone(&self) -> TransientTexture
fn clone(&self) -> TransientTexture
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransientTexture
impl Debug for TransientTexture
Source§impl PartialEq for TransientTexture
impl PartialEq for TransientTexture
impl StructuralPartialEq for TransientTexture
Auto Trait Implementations§
impl Freeze for TransientTexture
impl RefUnwindSafe for TransientTexture
impl Send for TransientTexture
impl Sync for TransientTexture
impl Unpin for TransientTexture
impl UnsafeUnpin for TransientTexture
impl UnwindSafe for TransientTexture
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