#[repr(i32)]
pub enum TextureSemantics {
Original,
Source,
OriginalHistory,
PassOutput,
PassFeedback,
User,
}
Expand description
Texture semantics relate to input or output textures.
Texture semantics are used to relate both texture samplers and *Size
uniforms.
Variants§
Original
The original input of the filter chain.
Source
The input from the previous shader pass, or the input on the first shader pass.
OriginalHistory
The input frames from previous frames.
PassOutput
The output from previous shader passes in the same frame.
PassFeedback
The output from previous shader passes in the previous frame.
User
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<TextureSemantics> for TextureSemantics
impl PartialEq<TextureSemantics> for TextureSemantics
source§fn eq(&self, other: &TextureSemantics) -> bool
fn eq(&self, other: &TextureSemantics) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TextureSemantics> for TextureSemantics
impl PartialOrd<TextureSemantics> for TextureSemantics
source§fn partial_cmp(&self, other: &TextureSemantics) -> Option<Ordering>
fn partial_cmp(&self, other: &TextureSemantics) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more