pub enum TextureSource {
Asset(TextureHandle),
Attachment(u64, TextureViewDimension),
}Expand description
Texture source specifier.
Allows materials to reference textures from the AssetServer or
internal render target attachments.
Variants§
Asset(TextureHandle)
Asset from AssetServer (with version tracking and automatic upload)
Attachment(u64, TextureViewDimension)
Pure GPU resource (e.g., Render Target), directly using its Resource ID.
This ID is typically assigned by RenderGraph or TexturePool.
Trait Implementations§
Source§impl Clone for TextureSource
impl Clone for TextureSource
Source§fn clone(&self) -> TextureSource
fn clone(&self) -> TextureSource
Returns a duplicate of the value. Read more
1.0.0 · 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 TextureSource
impl Debug for TextureSource
Source§impl From<TextureHandle> for TextureSource
impl From<TextureHandle> for TextureSource
Source§fn from(handle: TextureHandle) -> Self
fn from(handle: TextureHandle) -> Self
Converts to this type from the input type.
Source§impl From<TextureSource> for TextureSlot
impl From<TextureSource> for TextureSlot
Source§fn from(source: TextureSource) -> Self
fn from(source: TextureSource) -> Self
Converts to this type from the input type.
Source§impl Hash for TextureSource
impl Hash for TextureSource
Source§impl PartialEq for TextureSource
impl PartialEq for TextureSource
impl Copy for TextureSource
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.