[−][src]Struct web_glitz::rendering::ActiveGraphicsPipeline
An activated GraphicsPipeline which may be used to draw to a Framebuffer.
A handle to an ActiveGraphicsPipeline is obtained by using a GraphicsPipeline to create a [PipelineTask] for a Framebuffer, see [Framebuffer::pipeline_task].
Implementations
impl<'a, V, R, Tf> ActiveGraphicsPipeline<'a, V, R, Tf>
[src]
pub fn task_builder(
&self
) -> GraphicsPipelineTaskBuilder<'a, V, R, Unspecified, Unspecified, Unspecified, Empty>
[src]
&self
) -> GraphicsPipelineTaskBuilder<'a, V, R, Unspecified, Unspecified, Unspecified, Empty>
A builder interface that enforces valid sequencing of pipeline commands.
Notably, this builder will not allow the sequencing of a DrawCommand, before vertex buffers and/or resources have been bound (if the pipeline requires vertex buffers, resp. resources), see GraphicsPipelineTaskBuilder::draw; it will not allow the sequencing of a DrawIndexedCommand before an index buffer has been bound and before vertex buffers and/or resources have been bound (if the pipeline requires vertex buffers, resp. resources), see GraphicsPipelineTaskBuilder::draw_indexed.
Example
let render_pass = render_target.create_render_pass(|framebuffer| { framebuffer.pipeline_task(&graphics_pipeline, |active_pipeline| { active_pipeline.task_builder() .bind_vertex_buffers(vertex_buffer) .bind_resources(resources) .draw(16, 1) .finish() }) });
Auto Trait Implementations
impl<'a, V, R, Tf> !RefUnwindSafe for ActiveGraphicsPipeline<'a, V, R, Tf>
impl<'a, V, R, Tf> !Send for ActiveGraphicsPipeline<'a, V, R, Tf>
impl<'a, V, R, Tf> !Sync for ActiveGraphicsPipeline<'a, V, R, Tf>
impl<'a, V, R, Tf> Unpin for ActiveGraphicsPipeline<'a, V, R, Tf>
impl<'a, V, R, Tf> !UnwindSafe for ActiveGraphicsPipeline<'a, V, R, Tf>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static,
[src]
D: Borrow<T> + 'static,
T: Copy + 'static,
pub fn into_buffer<Rc>(Self, &Rc, BufferId, UsageHint) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static,
[src]
Rc: RenderingContext + Clone + 'static,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,