Enum rin_material::parameter::UniformValueRef[][src]

pub enum UniformValueRef<'a> {
Show variants Float(&'a f32), I32(&'a i32), U32(&'a u32), Bool(&'a bool), Vec2(&'a Vec2), Vec3(&'a Vec3), Vec4(&'a Vec4), IVec2(&'a Vec2<i32>), IVec3(&'a Vec3<i32>), IVec4(&'a Vec4<i32>), UVec2(&'a Vec2<u32>), UVec3(&'a Vec3<u32>), UVec4(&'a Vec4<u32>), Rgb(&'a Rgb<f32, Srgb>), Rgba(&'a Rgba<f32, Srgb>), RgbLinear(&'a Rgb<f32, LinearRgb>), RgbaLinear(&'a Rgba<f32, LinearRgb>), Texture(&'a TextureSampler), Cubemap(&'a CubemapSampler), Rad(&'a Rad<f32>), Deg(&'a Deg<f32>), Mat4(&'a Mat4), Mat3(&'a Mat3), ArrayFloat(&'a Vec<f32>), ArrayVec2(&'a Vec<Vec2>), ArrayVec3(&'a Vec<Vec3>), ArrayVec4(&'a Vec<Vec4>), ArrayInt(&'a Vec<i32>), ArrayIVec2(&'a Vec<Vec2<i32>>), ArrayIVec3(&'a Vec<Vec3<i32>>), ArrayIVec4(&'a Vec<Vec4<i32>>), ArrayUInt(&'a Vec<u32>), ArrayUVec2(&'a Vec<Vec2<u32>>), ArrayUVec3(&'a Vec<Vec3<u32>>), ArrayUVec4(&'a Vec<Vec4<u32>>), OptionFloat(&'a Option<f32>), OptionI32(&'a Option<i32>), OptionU32(&'a Option<u32>), OptionBool(&'a Option<bool>), OptionVec2(&'a Option<Vec2>), OptionVec3(&'a Option<Vec3>), OptionVec4(&'a Option<Vec4>), OptionIVec2(&'a Option<Vec2<i32>>), OptionIVec3(&'a Option<Vec3<i32>>), OptionIVec4(&'a Option<Vec4<i32>>), OptionUVec2(&'a Option<Vec2<u32>>), OptionUVec3(&'a Option<Vec3<u32>>), OptionUVec4(&'a Option<Vec4<u32>>), OptionRgb(&'a Option<Rgb<f32, Srgb>>), OptionRgba(&'a Option<Rgba<f32, Srgb>>), OptionRgbLinear(&'a Option<Rgb<f32, LinearRgb>>), OptionRgbaLinear(&'a Option<Rgba<f32, LinearRgb>>), OptionTexture(&'a Option<TextureSampler>), OptionCubemap(&'a Option<CubemapSampler>), OptionRad(&'a Option<Rad<f32>>), OptionDeg(&'a Option<Deg<f32>>), OptionMat4(&'a Option<Mat4>), OptionMat3(&'a Option<Mat3>), OptionArrayFloat(&'a Option<Vec<f32>>), OptionArrayVec2(&'a Option<Vec<Vec2>>), OptionArrayVec3(&'a Option<Vec<Vec3>>), OptionArrayVec4(&'a Option<Vec<Vec4>>), OptionArrayInt(&'a Option<Vec<i32>>), OptionArrayIVec2(&'a Option<Vec<Vec2<i32>>>), OptionArrayIVec3(&'a Option<Vec<Vec3<i32>>>), OptionArrayIVec4(&'a Option<Vec<Vec4<i32>>>), OptionArrayUInt(&'a Option<Vec<u32>>), OptionArrayUVec2(&'a Option<Vec<Vec2<u32>>>), OptionArrayUVec3(&'a Option<Vec<Vec3<u32>>>), OptionArrayUVec4(&'a Option<Vec<Vec4<u32>>>),
}

Variants

Float(&'a f32)
I32(&'a i32)
U32(&'a u32)
Bool(&'a bool)
Vec2(&'a Vec2)
Vec3(&'a Vec3)
Vec4(&'a Vec4)
IVec2(&'a Vec2<i32>)
IVec3(&'a Vec3<i32>)
IVec4(&'a Vec4<i32>)
UVec2(&'a Vec2<u32>)
UVec3(&'a Vec3<u32>)
UVec4(&'a Vec4<u32>)
Rgb(&'a Rgb<f32, Srgb>)
Rgba(&'a Rgba<f32, Srgb>)
RgbLinear(&'a Rgb<f32, LinearRgb>)
RgbaLinear(&'a Rgba<f32, LinearRgb>)
Texture(&'a TextureSampler)
Cubemap(&'a CubemapSampler)
Rad(&'a Rad<f32>)
Deg(&'a Deg<f32>)
Mat4(&'a Mat4)
Mat3(&'a Mat3)
ArrayFloat(&'a Vec<f32>)
ArrayVec2(&'a Vec<Vec2>)
ArrayVec3(&'a Vec<Vec3>)
ArrayVec4(&'a Vec<Vec4>)
ArrayInt(&'a Vec<i32>)
ArrayIVec2(&'a Vec<Vec2<i32>>)
ArrayIVec3(&'a Vec<Vec3<i32>>)
ArrayIVec4(&'a Vec<Vec4<i32>>)
ArrayUInt(&'a Vec<u32>)
ArrayUVec2(&'a Vec<Vec2<u32>>)
ArrayUVec3(&'a Vec<Vec3<u32>>)
ArrayUVec4(&'a Vec<Vec4<u32>>)
OptionFloat(&'a Option<f32>)
OptionI32(&'a Option<i32>)
OptionU32(&'a Option<u32>)
OptionBool(&'a Option<bool>)
OptionVec2(&'a Option<Vec2>)
OptionVec3(&'a Option<Vec3>)
OptionVec4(&'a Option<Vec4>)
OptionIVec2(&'a Option<Vec2<i32>>)
OptionIVec3(&'a Option<Vec3<i32>>)
OptionIVec4(&'a Option<Vec4<i32>>)
OptionUVec2(&'a Option<Vec2<u32>>)
OptionUVec3(&'a Option<Vec3<u32>>)
OptionUVec4(&'a Option<Vec4<u32>>)
OptionRgb(&'a Option<Rgb<f32, Srgb>>)
OptionRgba(&'a Option<Rgba<f32, Srgb>>)
OptionRgbLinear(&'a Option<Rgb<f32, LinearRgb>>)
OptionRgbaLinear(&'a Option<Rgba<f32, LinearRgb>>)
OptionTexture(&'a Option<TextureSampler>)
OptionCubemap(&'a Option<CubemapSampler>)
OptionRad(&'a Option<Rad<f32>>)
OptionDeg(&'a Option<Deg<f32>>)
OptionMat4(&'a Option<Mat4>)
OptionMat3(&'a Option<Mat3>)
OptionArrayFloat(&'a Option<Vec<f32>>)
OptionArrayVec2(&'a Option<Vec<Vec2>>)
OptionArrayVec3(&'a Option<Vec<Vec3>>)
OptionArrayVec4(&'a Option<Vec<Vec4>>)
OptionArrayInt(&'a Option<Vec<i32>>)
OptionArrayIVec2(&'a Option<Vec<Vec2<i32>>>)
OptionArrayIVec3(&'a Option<Vec<Vec3<i32>>>)
OptionArrayIVec4(&'a Option<Vec<Vec4<i32>>>)
OptionArrayUInt(&'a Option<Vec<u32>>)
OptionArrayUVec2(&'a Option<Vec<Vec2<u32>>>)
OptionArrayUVec3(&'a Option<Vec<Vec3<u32>>>)
OptionArrayUVec4(&'a Option<Vec<Vec4<u32>>>)

Implementations

impl<'a> UniformValueRef<'a>[src]

pub fn is_some(self) -> bool[src]

pub fn float(&self) -> Option<f32>[src]

pub fn int(&self) -> Option<i32>[src]

pub fn uint(&self) -> Option<u32>[src]

pub fn boolean(&self) -> Option<bool>[src]

pub fn vec2(&self) -> Option<Vec2>[src]

pub fn vec3(&self) -> Option<Vec3>[src]

pub fn vec4(&self) -> Option<Vec4>[src]

pub fn rgb(&self) -> Option<Rgb<f32>>[src]

pub fn rgba(&self) -> Option<Rgba<f32>>[src]

pub fn texture(&self) -> Option<TextureSampler>[src]

pub fn cubemap(&self) -> Option<CubemapSampler>[src]

pub fn mat4(&self) -> Option<Mat4>[src]

pub fn mat3(&self) -> Option<Mat3>[src]

Trait Implementations

impl<'a> Clone for UniformValueRef<'a>[src]

impl<'a> Debug for UniformValueRef<'a>[src]

impl<'a> PartialEq<UniformValueRef<'a>> for UniformValueRef<'a>[src]

impl<'a> Copy for UniformValueRef<'a>[src]

impl<'a> StructuralPartialEq for UniformValueRef<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for UniformValueRef<'a>

impl<'a> Send for UniformValueRef<'a>

impl<'a> Sync for UniformValueRef<'a>

impl<'a> Unpin for UniformValueRef<'a>

impl<'a> UnwindSafe for UniformValueRef<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoPnt<Point<T, U2>> for T where
    T: Scalar
[src]

impl<T> IntoPnt<Point<T, U3>> for T where
    T: Scalar
[src]

impl<T> IntoPnt<Point<T, U4>> for T where
    T: Scalar
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> JoinPnt<T, Point<T, U2>> for T where
    T: Scalar
[src]

type Output = Point<T, U3>

impl<T> JoinPnt<T, Point<T, U3>> for T where
    T: Scalar
[src]

type Output = Point<T, U4>

impl<T> JoinPnt<T, T> for T where
    T: Scalar
[src]

type Output = Point<T, U2>

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Debug + Any
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]