#[repr(i32)]pub enum TextureSemantics {
Original = 0,
Source = 1,
OriginalHistory = 2,
PassOutput = 3,
PassFeedback = 4,
User = 5,
}
Expand description
Texture semantics relate to input or output textures.
Texture semantics are used to relate both texture samplers and *Size
uniforms.
Variants§
Original = 0
The original input of the filter chain.
Source = 1
The input from the previous shader pass, or the input on the first shader pass.
OriginalHistory = 2
The input frames from previous frames.
PassOutput = 3
The output from previous shader passes in the same frame.
PassFeedback = 4
The output from previous shader passes in the previous frame.
User = 5
A user provided lookup texture.
Implementations§
Source§impl TextureSemantics
impl TextureSemantics
Sourcepub fn size_uniform_name(&self) -> &'static str
pub fn size_uniform_name(&self) -> &'static str
Get the name of the size uniform for this semantics when bound.
Sourcepub fn texture_name(&self) -> &'static str
pub fn texture_name(&self) -> &'static str
Get the name of the texture sampler for this semantics when bound.
Sourcepub fn is_indexed(&self) -> bool
pub fn is_indexed(&self) -> bool
Returns whether or not textures of this semantics are indexed or unique.
Only Original and Source are unique, all other textures can be indexed.
Sourcepub const fn semantics(self, index: usize) -> Semantic<TextureSemantics>
pub const fn semantics(self, index: usize) -> Semantic<TextureSemantics>
Produce a Semantic
for this TextureSemantics
of the given index.
Trait Implementations§
Source§impl Clone for TextureSemantics
impl Clone for TextureSemantics
Source§fn clone(&self) -> TextureSemantics
fn clone(&self) -> TextureSemantics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TextureSemantics
impl Debug for TextureSemantics
Source§impl Hash for TextureSemantics
impl Hash for TextureSemantics
Source§impl Ord for TextureSemantics
impl Ord for TextureSemantics
Source§fn cmp(&self, other: &TextureSemantics) -> Ordering
fn cmp(&self, other: &TextureSemantics) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TextureSemantics
impl PartialEq for TextureSemantics
Source§impl PartialOrd for TextureSemantics
impl PartialOrd for TextureSemantics
impl Copy for TextureSemantics
impl Eq for TextureSemantics
impl StructuralPartialEq for TextureSemantics
Auto Trait Implementations§
impl Freeze for TextureSemantics
impl RefUnwindSafe for TextureSemantics
impl Send for TextureSemantics
impl Sync for TextureSemantics
impl Unpin for TextureSemantics
impl UnwindSafe for TextureSemantics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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