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 Freeze 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