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)
Texture(&'a TextureSampler)
Cubemap(&'a CubemapSampler)
Mat4(&'a Mat4)
Mat3(&'a Mat3)
OptionTexture(&'a Option<TextureSampler>)
OptionCubemap(&'a Option<CubemapSampler>)
Implementations
impl<'a> UniformValueRef<'a>
[src]
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> Clone for UniformValueRef<'a>
[src]fn clone(&self) -> UniformValueRef<'a>
[src][−]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src][−]
impl<'a> PartialEq<UniformValueRef<'a>> for UniformValueRef<'a>
[src]
impl<'a> PartialEq<UniformValueRef<'a>> for UniformValueRef<'a>
[src]fn eq(&self, other: &UniformValueRef<'a>) -> bool
[src][−]
fn ne(&self, other: &UniformValueRef<'a>) -> bool
[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<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src][−]
pub fn is_in_subset(&self) -> bool
[src][−]
pub fn to_subset_unchecked(&self) -> SS
[src][−]
pub fn from_subset(element: &SS) -> SP
[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]