#[non_exhaustive]pub enum TexInput {
Target(RenderTargetId),
Image(ImageSource),
}Expand description
Texture made available to a shader draw.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Target(RenderTargetId)
Output of an earlier offscreen target.
Image(ImageSource)
Bitmap image source. The renderer uploads and caches it by cache key.
Trait Implementations§
Source§impl From<RenderTargetId> for TexInput
impl From<RenderTargetId> for TexInput
Source§fn from(target: RenderTargetId) -> Self
fn from(target: RenderTargetId) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for TexInput
Auto Trait Implementations§
impl Freeze for TexInput
impl RefUnwindSafe for TexInput
impl Send for TexInput
impl Sync for TexInput
impl Unpin for TexInput
impl UnsafeUnpin for TexInput
impl UnwindSafe for TexInput
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