Struct amethyst_renderer::DrawPbm
[−]
[src]
pub struct DrawPbm<V> { /* fields omitted */ }
Draw mesh with physically based lighting
V
is VertexFormat
Methods
impl<V> DrawPbm<V> where
V: Query<(Position, Normal, Tangent, TexCoord)>,
[src]
V: Query<(Position, Normal, Tangent, TexCoord)>,
Trait Implementations
impl<V> Default for DrawPbm<V> where
V: Query<(Position, Normal, Tangent, TexCoord)>,
[src]
V: Query<(Position, Normal, Tangent, TexCoord)>,
impl<V: Clone> Clone for DrawPbm<V>
[src]
fn clone(&self) -> DrawPbm<V>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<V: Debug> Debug for DrawPbm<V>
[src]
impl<V: PartialEq> PartialEq for DrawPbm<V>
[src]
fn eq(&self, __arg_0: &DrawPbm<V>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DrawPbm<V>) -> bool
[src]
This method tests for !=
.
impl<'a, V> PassData<'a> for DrawPbm<V> where
V: Query<(Position, Normal, Tangent, TexCoord)>,
[src]
V: Query<(Position, Normal, Tangent, TexCoord)>,
type Data = (Option<Fetch<'a, ActiveCamera>>, ReadStorage<'a, Camera>, Fetch<'a, AmbientColor>, Fetch<'a, AssetStorage<Mesh>>, Fetch<'a, AssetStorage<Texture>>, Fetch<'a, MaterialDefaults>, ReadStorage<'a, MeshHandle>, ReadStorage<'a, Material>, ReadStorage<'a, Transform>, ReadStorage<'a, Light>)
The data itself.
impl<V> Pass for DrawPbm<V> where
V: Query<(Position, Normal, Tangent, TexCoord)>,
[src]
V: Query<(Position, Normal, Tangent, TexCoord)>,
fn compile(&self, effect: NewEffect) -> Result<Effect>
[src]
The pass is given an opportunity to compile shaders and store them in an Effect
which is then passed to the pass in apply
. Read more
fn apply<'a, 'b: 'a>(
&'a mut self,
encoder: &mut Encoder,
effect: &mut Effect,
_factory: Factory,
(active, camera, ambient, mesh_storage, tex_storage, material_defaults, mesh, material, global, light): (Option<Fetch<'a, ActiveCamera>>, ReadStorage<'a, Camera>, Fetch<'a, AmbientColor>, Fetch<'a, AssetStorage<Mesh>>, Fetch<'a, AssetStorage<Texture>>, Fetch<'a, MaterialDefaults>, ReadStorage<'a, MeshHandle>, ReadStorage<'a, Material>, ReadStorage<'a, Transform>, ReadStorage<'a, Light>)
)
[src]
&'a mut self,
encoder: &mut Encoder,
effect: &mut Effect,
_factory: Factory,
(active, camera, ambient, mesh_storage, tex_storage, material_defaults, mesh, material, global, light): (Option<Fetch<'a, ActiveCamera>>, ReadStorage<'a, Camera>, Fetch<'a, AmbientColor>, Fetch<'a, AssetStorage<Mesh>>, Fetch<'a, AssetStorage<Texture>>, Fetch<'a, MaterialDefaults>, ReadStorage<'a, MeshHandle>, ReadStorage<'a, Material>, ReadStorage<'a, Transform>, ReadStorage<'a, Light>)
)
Called whenever the renderer is ready to apply the pass. Feed commands into the encoder here. Read more