Struct rin::scene::renderer::ShaderMaterialBuilder [−][src]
pub struct ShaderMaterialBuilder { /* fields omitted */ }
Implementations
impl ShaderMaterialBuilder
[src]
impl ShaderMaterialBuilder
[src]pub fn new() -> ShaderMaterialBuilder
[src]
pub fn shader(self, shader: Shader) -> ShaderMaterialBuilder
[src]
pub fn uniforms_fn<F>(self, uniforms: F) -> ShaderMaterialBuilder where
F: FnMut() -> PropertyChanged<Vec<Uniform, Global>> + 'static,
[src]
F: FnMut() -> PropertyChanged<Vec<Uniform, Global>> + 'static,
pub fn uniforms(self, uniforms: Vec<Uniform, Global>) -> ShaderMaterialBuilder
[src]
pub fn data_fn<F>(self, data: F) -> ShaderMaterialBuilder where
F: FnMut() -> PropertyChanged<Option<Data>> + 'static,
[src]
F: FnMut() -> PropertyChanged<Option<Data>> + 'static,
pub fn data(self, data: Data) -> ShaderMaterialBuilder
[src]
pub fn property(self, property: Property) -> ShaderMaterialBuilder
[src]
pub fn alpha_type(self, alpha_type: AlphaType) -> ShaderMaterialBuilder
[src]
pub fn priority(self, priority: i32) -> ShaderMaterialBuilder
[src]
pub fn texture(
self,
uniform_name: String,
texture: TextureRef
) -> ShaderMaterialBuilder
[src]
self,
uniform_name: String,
texture: TextureRef
) -> ShaderMaterialBuilder
pub fn texture_sampler(
self,
uniform_name: String,
texture: TextureSampler
) -> ShaderMaterialBuilder
[src]
self,
uniform_name: String,
texture: TextureSampler
) -> ShaderMaterialBuilder
pub fn define<S1, S2>(self, key: S1, value: S2) -> ShaderMaterialBuilder where
S2: Into<String>,
S1: Into<String>,
[src]
S2: Into<String>,
S1: Into<String>,
pub fn debug_textoords(self) -> ShaderMaterialBuilder
[src]
pub fn debug_normals(self) -> ShaderMaterialBuilder
[src]
pub fn build(self) -> ShaderMaterial
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ShaderMaterialBuilder
impl !Send for ShaderMaterialBuilder
impl !Sync for ShaderMaterialBuilder
impl Unpin for ShaderMaterialBuilder
impl !UnwindSafe for ShaderMaterialBuilder
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]