Struct ggez::graphics::ShaderParamsBuilder
source · pub struct ShaderParamsBuilder<'a, Uniforms: AsStd140> { /* private fields */ }
Expand description
A builder for ShaderParams
Implementations§
source§impl<'a, Uniforms: AsStd140> ShaderParamsBuilder<'a, Uniforms>
impl<'a, Uniforms: AsStd140> ShaderParamsBuilder<'a, Uniforms>
sourcepub fn new(uniforms: &'a Uniforms) -> Self
pub fn new(uniforms: &'a Uniforms) -> Self
sourcepub fn images(
self,
images: &'a [&'a Image],
samplers: &'a [Sampler],
vs_visible: bool
) -> Self
pub fn images( self, images: &'a [&'a Image], samplers: &'a [Sampler], vs_visible: bool ) -> Self
Provides images to the shaders.
Arguments
vs_visible
- If the images should also be visible to the vertex shader, rather than just the fragment shader.
sourcepub fn build(self, ctx: &mut Context) -> ShaderParams<Uniforms>
pub fn build(self, ctx: &mut Context) -> ShaderParams<Uniforms>
Produce a ShaderParams
from the builder.
Trait Implementations§
Auto Trait Implementations§
impl<'a, Uniforms> !RefUnwindSafe for ShaderParamsBuilder<'a, Uniforms>
impl<'a, Uniforms> Send for ShaderParamsBuilder<'a, Uniforms>where Uniforms: Sync,
impl<'a, Uniforms> Sync for ShaderParamsBuilder<'a, Uniforms>where Uniforms: Sync,
impl<'a, Uniforms> Unpin for ShaderParamsBuilder<'a, Uniforms>
impl<'a, Uniforms> !UnwindSafe for ShaderParamsBuilder<'a, Uniforms>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> HasMut<T> for T
impl<T> HasMut<T> for T
source§fn retrieve_mut(&mut self) -> &mut T
fn retrieve_mut(&mut self) -> &mut T
Method to retrieve the context type as mutable.