Struct GraphicsPipelineDesc

Source
pub struct GraphicsPipelineDesc<'a, B>
where B: Backend,
{
Show 13 fields pub shaders: GraphicsShaderSet<'a, B>, pub rasterizer: Rasterizer, pub vertex_buffers: Vec<VertexBufferDesc>, pub attributes: Vec<AttributeDesc>, pub input_assembler: InputAssemblerDesc, pub blender: BlendDesc, pub depth_stencil: DepthStencilDesc, pub multisampling: Option<Multisampling>, pub baked_states: BakedStates, pub layout: &'a <B as Backend>::PipelineLayout, pub subpass: Subpass<'a, B>, pub flags: PipelineCreationFlags, pub parent: BasePipeline<'a, <B as Backend>::GraphicsPipeline>,
}
Expand description

A description of all the settings that can be altered when creating a graphics pipeline.

Fields§

§shaders: GraphicsShaderSet<'a, B>

A set of graphics shaders to use for the pipeline.

§rasterizer: Rasterizer

Rasterizer setup

§vertex_buffers: Vec<VertexBufferDesc>

Vertex buffers (IA)

§attributes: Vec<AttributeDesc>

Vertex attributes (IA)

§input_assembler: InputAssemblerDesc

Input assembler attributes, describes how vertices are assembled into primitives (such as triangles).

§blender: BlendDesc

Description of how blend operations should be performed.

§depth_stencil: DepthStencilDesc

Depth stencil (DSV)

§multisampling: Option<Multisampling>

Multisampling.

§baked_states: BakedStates

Static pipeline states.

§layout: &'a <B as Backend>::PipelineLayout

Pipeline layout.

§subpass: Subpass<'a, B>

Subpass in which the pipeline can be executed.

§flags: PipelineCreationFlags

Options that may be set to alter pipeline properties.

§parent: BasePipeline<'a, <B as Backend>::GraphicsPipeline>

The parent pipeline, which may be BasePipeline::None.

Implementations§

Source§

impl<'a, B> GraphicsPipelineDesc<'a, B>
where B: Backend,

Source

pub fn new( shaders: GraphicsShaderSet<'a, B>, primitive: Primitive, rasterizer: Rasterizer, layout: &'a <B as Backend>::PipelineLayout, subpass: Subpass<'a, B>, ) -> GraphicsPipelineDesc<'a, B>

Create a new empty PSO descriptor.

Trait Implementations§

Source§

impl<'a, B> Debug for GraphicsPipelineDesc<'a, B>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.