pub enum TextureSource {
Image(u32),
Layer(usize),
Ramp(usize),
}Expand description
Where a pass’s texture slot gets its content.
A recording is produced without touching a device, so it can name neither a texture nor an allocation. It names either an image the caller will supply or an earlier pass in the same recording, and whoever executes it resolves both.
Variants§
Image(u32)
The caller’s image at this index in the table given at draw time.
Layer(usize)
The output of the pass at this index in Recording::passes.
Ramp(usize)
The baked gradient at this index in Recording::ramps.
Unlike the other two this names something the recorder made rather than something it was given or rendered, so it is uploaded at submission and discarded with the frame.
Trait Implementations§
Source§impl Clone for TextureSource
impl Clone for TextureSource
impl Copy for TextureSource
Source§impl Debug for TextureSource
impl Debug for TextureSource
impl Eq for TextureSource
Source§impl PartialEq for TextureSource
impl PartialEq for TextureSource
impl StructuralPartialEq for TextureSource
Auto Trait Implementations§
impl Forget for TextureSource
impl Freeze for TextureSource
impl Move for TextureSource
impl RefUnwindSafe for TextureSource
impl Send for TextureSource
impl Sync for TextureSource
impl Unpin for TextureSource
impl UnsafeUnpin for TextureSource
impl UnwindSafe for TextureSource
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
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,
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> ⓘ
Converts
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> ⓘ
Converts
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