Struct solstice_2d::Shader [−][src]
pub struct Shader { /* fields omitted */ }
Implementations
pub fn with<'a, S>(src: S, ctx: &mut Context) -> Result<Self, ShaderError> where
S: Into<ShaderSource<'a>>,
[src]pub fn set_viewport(
&mut self,
projection: Projection,
default_projection_bounds: Option<Rectangle>,
viewport: Viewport<i32>,
invert_y: bool
)
[src]pub fn set_width_height(
&mut self,
projection: Projection,
width: f32,
height: f32,
invert_y: bool
)
[src]pub fn send_uniform<S, V>(&mut self, name: S, value: V) where
S: AsRef<str>,
V: TryInto<RawUniformValue>,
[src]Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Shader
impl UnwindSafe for Shader
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V