[−][src]Struct web_glitz::pipeline::graphics::GraphicsPipeline
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]
&self
) -> Option<&TransformFeedbackLayoutDescriptor>
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]
&mut self,
transform_feedback_buffers: Fb
) -> RecordTransformFeedback<'_, V, R, Tf, Fb> where
Tf: TypedTransformFeedbackLayout,
Fb: TypedTransformFeedbackBuffers<Layout = Tf>,
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]
R: TypedResourceBindingsLayout,
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]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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,
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]
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>,