Struct rin_material::BasicMaterial [−][src]
pub struct BasicMaterial { pub base_color: Parameter<Option<Rgba<f32>>>, pub texture: Parameter<Option<TextureSampler>>, pub properties: Parameter<Vec<Property>>, pub alpha_type: Parameter<AlphaType>, pub debug_texcoords: Parameter<bool>, pub debug_normals: Parameter<bool>, pub output_linear_colors: Parameter<bool>, }
Fields
base_color: Parameter<Option<Rgba<f32>>>
texture: Parameter<Option<TextureSampler>>
properties: Parameter<Vec<Property>>
alpha_type: Parameter<AlphaType>
debug_texcoords: Parameter<bool>
debug_normals: Parameter<bool>
output_linear_colors: Parameter<bool>
Implementations
impl BasicMaterial
[src]
impl BasicMaterial
[src]pub fn new() -> BasicMaterial
[src]
Trait Implementations
impl Clone for BasicMaterial
[src]
impl Clone for BasicMaterial
[src]fn clone(&self) -> BasicMaterial
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for BasicMaterial
[src]
impl Default for BasicMaterial
[src]fn default() -> BasicMaterial
[src]
impl Material for BasicMaterial
[src]
impl Material for BasicMaterial
[src]fn type_name(&self) -> &str
[src]
fn parameter_names(&self) -> Vec<&str>
[src]
fn parameters(&self) -> Vec<ParameterAny<'_>>
[src]
fn parameters_mut(&mut self) -> Vec<ParameterMutAny<'_>>
[src]
fn parameter(&self, name: &str) -> Option<ParameterAny<'_>>
[src]
fn parameter_mut(&mut self, name: &str) -> Option<ParameterMutAny<'_>>
[src]
fn parameter_type_name(&self, name: &str) -> Option<&str>
[src]
fn reset_changed(&mut self)
[src]
impl MaterialParameterTypes for BasicMaterial
[src]
impl MaterialParameterTypes for BasicMaterial
[src]fn uniform_parameters(&self) -> Vec<UniformRef<'_>>
[src]
fn texture_parameters(&self) -> Vec<UniformRef<'_>>
[src]
fn cubemap_parameters(&self) -> Vec<UniformRef<'_>>
[src]
fn properties_parameter(&self) -> Option<&Parameter<Vec<Property>>>
[src]
fn alpha_type_parameter(&self) -> Option<&Parameter<AlphaType>>
[src]
fn any_uniform_changed(&self) -> bool
[src]
fn any_texture_changed(&self) -> bool
[src]
fn any_cubemap_changed(&self) -> bool
[src]
fn any_data_changed(&self) -> bool
[src]
fn has_uniforms(&self) -> bool
[src]
fn has_data(&self) -> bool
[src]
fn has_textures(&self) -> bool
[src]
fn has_cubemaps(&self) -> bool
[src]
fn any_uniform_option_changed(&self) -> bool
[src]
fn any_texture_option_changed(&self) -> bool
[src]
fn any_cubemap_option_changed(&self) -> bool
[src]
fn any_data_option_changed(&self) -> bool
[src]
impl WriteStd140 for BasicMaterial
[src]
impl WriteStd140 for BasicMaterial
[src]fn write_std140(&self, data: &mut Data)
[src]
Auto Trait Implementations
impl RefUnwindSafe for BasicMaterial
impl Send for BasicMaterial
impl Sync for BasicMaterial
impl Unpin for BasicMaterial
impl UnwindSafe for BasicMaterial
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]