[−][src]Struct grr::GraphicsPipelineDesc
Graphics Pipeline Descriptor.
Overview
The graphics pipeline is invoked by executing a draw command. The pipeline consists of multiple stages,
where some are fully programmable (Shader
) and other fixed-function stages can be only configured.
Stages
We will go through the the different stages starting from top to bottom.
At the highest abstraction level we split the graphics pipeline into three components (grr
terminology):
- Primitive Stage: Reading data from buffers and generates primitives.
- Rasterizer: Transforms primitives into fragments.
- Fragment Stage: Shades fragments and blends them into the
framebuffer
.
Fig. 1 shows a very simplistic view of a graphics pipeline consisting of a vertex (VS) and fragment (FS) shader. We will discuss the different stages in more detail later on. The Primitive Stage in this examples consists of the Input Assembler (IA) and the Vertex Shader (VS). The Rasterizer is shown as the fixed function RS stage. The fragment shader together with the framebuffer output (FB) build the Fragment Stage.
In the following the different top-level stages will be split up and discussed in more detail
Primitive Stage
Rasterizer
Fragment Stage
Examples
Fields
vertex_shader: Option<Shader>
tessellation_control_shader: Option<Shader>
tessellation_evaluation_shader: Option<Shader>
geometry_shader: Option<Shader>
fragment_shader: Option<Shader>
mesh_shader: Option<Shader>
task_shader: Option<Shader>
Trait Implementations
impl Clone for GraphicsPipelineDesc
[src]
fn clone(&self) -> GraphicsPipelineDesc
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GraphicsPipelineDesc
[src]
impl From<MeshPipelineDesc> for GraphicsPipelineDesc
[src]
fn from(desc: MeshPipelineDesc) -> Self
[src]
impl From<VertexPipelineDesc> for GraphicsPipelineDesc
[src]
fn from(desc: VertexPipelineDesc) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for GraphicsPipelineDesc
impl Send for GraphicsPipelineDesc
impl Sync for GraphicsPipelineDesc
impl Unpin for GraphicsPipelineDesc
impl UnwindSafe for GraphicsPipelineDesc
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,
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<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,