pub struct QuadPipe {
pub vertex_buffer: VertexBuffer,
pub index_buffer: IndexBuffer,
pub groups: Vec<Group>,
pub texture_binds: HashMap<usize, BindingGroup>,
/* private fields */
}
Expand description
Pipeline for drawing textured quads. Designed to work with crate::graphics::sprite::Sprite
Fields
vertex_buffer: VertexBuffer
index_buffer: IndexBuffer
groups: Vec<Group>
texture_binds: HashMap<usize, BindingGroup>
Implementations
Trait Implementations
sourceimpl Deref for QuadPipe
impl Deref for QuadPipe
type Target = PipelineCore
type Target = PipelineCore
The resulting type after dereferencing.
sourceimpl<'a> Plumber<'a> for QuadPipe
impl<'a> Plumber<'a> for QuadPipe
type PrepareContext = (Vec<Breakdown<QuadVertex>, Global>, Transform3D<f32, WorldSpace, ScreenSpace>)
type PrepareContext = (Vec<Breakdown<QuadVertex>, Global>, Transform3D<f32, WorldSpace, ScreenSpace>)
A type that containts the neccissary data for updating the uniform buffer
sourcefn description() -> PipelineDescription<'a>
fn description() -> PipelineDescription<'a>
Returns a PipelineDescription
. This describes the layout of vertecies, sets of bindings and your shader file.
sourcefn setup(pipe: Pipeline, paint: &Painter) -> Self
fn setup(pipe: Pipeline, paint: &Painter) -> Self
Used to create your pipeline. Supplies the wgpu pipeline and device.
sourcefn prepare(
&'a mut self,
prep: Self::PrepareContext,
paint: &mut Painter
) -> Vec<(&'a mut UniformBuffer, Vec<Self::Uniforms>)>
fn prepare(
&'a mut self,
prep: Self::PrepareContext,
paint: &mut Painter
) -> Vec<(&'a mut UniformBuffer, Vec<Self::Uniforms>)>
Create the uniforms neccissary for an update with the supplied Plumber::PrepareContext
.
sourceimpl Render for QuadPipe
impl Render for QuadPipe
type Vertex = QuadVertex
fn render<'a>(&'a mut self, _paint: &mut Painter, pass: &mut RenderPass<'a>)
Auto Trait Implementations
impl !RefUnwindSafe for QuadPipe
impl Send for QuadPipe
impl Sync for QuadPipe
impl Unpin for QuadPipe
impl !UnwindSafe for QuadPipe
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more