Struct ggez::graphics::ShaderGeneric [−][src]
pub struct ShaderGeneric<Spec: BackendSpec, C: Structure<ConstFormat>> { /* fields omitted */ }
Expand description
A ShaderGeneric
reprensents a handle user-defined shader that can be used
with a ggez graphics context that is generic over gfx::Resources
As an end-user you shouldn’t ever have to touch this and should use
Shader
instead.
Implementations
impl<Spec, C> ShaderGeneric<Spec, C> where
Spec: BackendSpec,
C: 'static + Pod + Structure<ConstFormat> + Clone + Copy,
impl<Spec, C> ShaderGeneric<Spec, C> where
Spec: BackendSpec,
C: 'static + Pod + Structure<ConstFormat> + Clone + Copy,
Create a new Shader
given source files, constants and a name.
In order to use a specific blend mode when this shader is being
used, you must include that blend mode as part of the
blend_modes
parameter at creation. If None
is given, only the
default Alpha
blend mode is used.
Create a new Shader
directly from GLSL source code.
In order to use a specific blend mode when this shader is being
used, you must include that blend mode as part of the
blend_modes
parameter at creation. If None
is given, only the
default Alpha
blend mode is used.
impl<C> ShaderGeneric<GlBackendSpec, C> where
C: 'static + Pod + Structure<ConstFormat> + Clone + Copy,
impl<C> ShaderGeneric<GlBackendSpec, C> where
C: 'static + Pod + Structure<ConstFormat> + Clone + Copy,
Trait Implementations
impl<Spec: Clone + BackendSpec, C: Clone + Structure<ConstFormat>> Clone for ShaderGeneric<Spec, C> where
Spec::Resources: Clone,
impl<Spec: Clone + BackendSpec, C: Clone + Structure<ConstFormat>> Clone for ShaderGeneric<Spec, C> where
Spec::Resources: Clone,
impl<Spec, C> Debug for ShaderGeneric<Spec, C> where
Spec: BackendSpec,
C: Structure<ConstFormat>,
impl<Spec, C> Debug for ShaderGeneric<Spec, C> where
Spec: BackendSpec,
C: Structure<ConstFormat>,
Auto Trait Implementations
impl<Spec, C> !RefUnwindSafe for ShaderGeneric<Spec, C>
impl<Spec, C> Send for ShaderGeneric<Spec, C> where
C: Send,
impl<Spec, C> Sync for ShaderGeneric<Spec, C> where
C: Sync,
impl<Spec, C> Unpin for ShaderGeneric<Spec, C> where
C: Unpin,
impl<Spec, C> !UnwindSafe for ShaderGeneric<Spec, C>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V