[][src]Struct web_glitz::pipeline::graphics::GraphicsPipeline

pub struct GraphicsPipeline<V, R, Tf> { /* fields omitted */ }

Encapsulates the state for a graphics pipeline.

See [RenderingContext::create_graphics_pipeline] for details on how a graphics pipeline is constructed. See [Framebuffer::pipeline_task] for details on how a graphics pipeline may be used to draw to a framebuffer.

Implementations

impl<V, R, Tf> GraphicsPipeline<V, R, Tf>[src]

pub fn vertex_attribute_layout(&self) -> &VertexInputLayoutDescriptor[src]

Returns a description of the vertex input layout expected by the pipeline.

See VertexInputLayoutDescriptor for details.

pub fn transform_feedback_layout(
    &self
) -> Option<&TransformFeedbackLayoutDescriptor>
[src]

Returns a description of the transform feedback layout used by the pipeline if the pipeline is capable of recording transform feedback, or None otherwise.

See TransformFeedbackLayoutDescriptor for details.

pub fn primitive_assembly(&self) -> &PrimitiveAssembly[src]

Returns the primitive assembly configuration used by the pipeline.

See PrimitiveAssembly for details.

pub fn depth_test(&self) -> Option<&DepthTest>[src]

Returns the depth test configuration used by the pipeline if the depth test is enabled, or None otherwise.

See DepthTest for details.

pub fn stencil_test(&self) -> Option<&StencilTest>[src]

Returns the stencil test configuration used by the pipeline if the depth test is enabled, or None otherwise.

See StencilTest for details.

pub fn scissor_region(&self) -> &Region2D[src]

Returns the scissor region applied by this pipeline when outputting to a framebuffer.

Fragments outside this region are discarded before the fragment processing stages.

pub fn blending(&self) -> Option<&Blending>[src]

Returns the blending configuration used by the pipeline if the depth test is enabled, or None otherwise.

See Blending for details.

pub fn viewport(&self) -> &Viewport[src]

Returns the viewport configuration used by the pipeline.

See Viewport for details.

pub fn record_transform_feedback<Fb>(
    &mut self,
    transform_feedback_buffers: Fb
) -> RecordTransformFeedback<'_, V, R, Tf, Fb> where
    Tf: TypedTransformFeedbackLayout,
    Fb: TypedTransformFeedbackBuffers<Layout = Tf>, 
[src]

Returns a wrapped representation of this graphics pipeline that will record the output of the vertex transformation stage(s) for the pipeline in the attached transform_feedback_buffers.

impl<V, Tf> GraphicsPipeline<V, Untyped, Tf>[src]

pub fn resource_bindings_layout(&self) -> &ResourceBindingsLayoutDescriptor[src]

Returns a minimal description of the resource bindings layout used by this pipeline.

See ResourceBindingsLayoutDescriptor for details.

impl<V, R, Tf> GraphicsPipeline<V, R, Tf> where
    R: TypedResourceBindingsLayout
[src]

pub fn resource_bindings_layout(&self) -> &TypedResourceBindingsLayoutDescriptor[src]

Returns a typed description of the resource bindings layout used by this pipeline.

See TypedResourceBindingsLayoutDescriptor for details.

Trait Implementations

impl<V, R, Tf> Drop for GraphicsPipeline<V, R, Tf>[src]

impl<V, R, Tf> Hash for GraphicsPipeline<V, R, Tf>[src]

impl<V, R, Tf> PartialEq<GraphicsPipeline<V, R, Tf>> for GraphicsPipeline<V, R, Tf>[src]

Auto Trait Implementations

impl<V, R, Tf> !RefUnwindSafe for GraphicsPipeline<V, R, Tf>

impl<V, R, Tf> !Send for GraphicsPipeline<V, R, Tf>

impl<V, R, Tf> !Sync for GraphicsPipeline<V, R, Tf>

impl<V, R, Tf> Unpin for GraphicsPipeline<V, R, Tf> where
    R: Unpin,
    Tf: Unpin,
    V: Unpin

impl<V, R, Tf> !UnwindSafe for GraphicsPipeline<V, R, Tf>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.