[][src]Struct vulkano::pipeline::GraphicsPipeline

pub struct GraphicsPipeline<VertexDefinition, Layout, RenderP> { /* fields omitted */ }

Defines how the implementation should perform a draw operation.

This object contains the shaders and the various fixed states that describe how the implementation should perform the various operations needed by a draw command.

Methods

impl GraphicsPipeline<(), (), ()>[src]

pub fn start<'a>(
) -> GraphicsPipelineBuilder<BufferlessDefinition, EmptyEntryPointDummy, (), EmptyEntryPointDummy, (), EmptyEntryPointDummy, (), EmptyEntryPointDummy, (), EmptyEntryPointDummy, (), ()>
[src]

Starts the building process of a graphics pipeline. Returns a builder object that you can fill with the various parameters.

impl<Mv, L, Rp> GraphicsPipeline<Mv, L, Rp>[src]

pub fn vertex_definition(&self) -> &Mv[src]

Returns the vertex definition used in the constructor.

pub fn device(&self) -> &Arc<Device>[src]

Returns the device used to create this pipeline.

impl<Mv, L, Rp> GraphicsPipeline<Mv, L, Rp> where
    L: PipelineLayoutAbstract
[src]

pub fn layout(&self) -> &L[src]

Returns the pipeline layout used in the constructor.

impl<Mv, L, Rp> GraphicsPipeline<Mv, L, Rp> where
    Rp: RenderPassDesc
[src]

pub fn subpass(&self) -> Subpass<&Rp>[src]

Returns the pass used in the constructor.

impl<Mv, L, Rp> GraphicsPipeline<Mv, L, Rp>[src]

pub fn render_pass(&self) -> &Rp[src]

Returns the render pass used in the constructor.

pub fn has_dynamic_line_width(&self) -> bool[src]

Returns true if the line width used by this pipeline is dynamic.

pub fn num_viewports(&self) -> u32[src]

Returns the number of viewports and scissors of this pipeline.

pub fn has_dynamic_viewports(&self) -> bool[src]

Returns true if the viewports used by this pipeline are dynamic.

pub fn has_dynamic_scissors(&self) -> bool[src]

Returns true if the scissors used by this pipeline are dynamic.

pub fn has_dynamic_depth_bounds(&self) -> bool[src]

Returns true if the depth bounds used by this pipeline are dynamic.

pub fn has_dynamic_stencil_compare_mask(&self) -> bool[src]

Returns true if the stencil compare masks used by this pipeline are dynamic.

pub fn has_dynamic_stencil_write_mask(&self) -> bool[src]

Returns true if the stencil write masks used by this pipeline are dynamic.

pub fn has_dynamic_stencil_reference(&self) -> bool[src]

Returns true if the stencil references used by this pipeline are dynamic.

Trait Implementations

impl<Mv, L, Rp> PipelineLayoutAbstract for GraphicsPipeline<Mv, L, Rp> where
    L: PipelineLayoutAbstract
[src]

impl<Mv, L, Rp> PipelineLayoutDesc for GraphicsPipeline<Mv, L, Rp> where
    L: PipelineLayoutDesc
[src]

impl<Mv, L, Rp> DeviceOwned for GraphicsPipeline<Mv, L, Rp>[src]

impl<Mv, L, Rp> RenderPassDesc for GraphicsPipeline<Mv, L, Rp> where
    Rp: RenderPassDesc
[src]

impl<Mv, L, Rp> RenderPassAbstract for GraphicsPipeline<Mv, L, Rp> where
    Rp: RenderPassAbstract
[src]

impl<C, Mv, L, Rp> RenderPassDescClearValues<C> for GraphicsPipeline<Mv, L, Rp> where
    Rp: RenderPassDescClearValues<C>, 
[src]

impl<Mv, L, Rp> GraphicsPipelineAbstract for GraphicsPipeline<Mv, L, Rp> where
    L: PipelineLayoutAbstract,
    Rp: RenderPassAbstract,
    Mv: VertexSource<Vec<Arc<dyn BufferAccess + Send + Sync>>>, 
[src]

impl<Mv, L, Rp, I> VertexDefinition<I> for GraphicsPipeline<Mv, L, Rp> where
    Mv: VertexDefinition<I>, 
[src]

type BuffersIter = <Mv as VertexDefinition<I>>::BuffersIter

Iterator that returns the offset, the stride (in bytes) and input rate of each buffer.

type AttribsIter = <Mv as VertexDefinition<I>>::AttribsIter

Iterator that returns the attribute location, buffer id, and infos.

impl<Mv, L, Rp, S> VertexSource<S> for GraphicsPipeline<Mv, L, Rp> where
    Mv: VertexSource<S>, 
[src]

impl<Mv, L, Rp> VulkanObject for GraphicsPipeline<Mv, L, Rp>[src]

type Object = Pipeline

The type of the object.

impl<Mv, L, Rp> Debug for GraphicsPipeline<Mv, L, Rp>[src]

Auto Trait Implementations

impl<VertexDefinition, Layout, RenderP> Send for GraphicsPipeline<VertexDefinition, Layout, RenderP> where
    Layout: Send,
    RenderP: Send,
    VertexDefinition: Send

impl<VertexDefinition, Layout, RenderP> Sync for GraphicsPipeline<VertexDefinition, Layout, RenderP> where
    Layout: Sync,
    RenderP: Sync,
    VertexDefinition: Sync

impl<VertexDefinition, Layout, RenderP> Unpin for GraphicsPipeline<VertexDefinition, Layout, RenderP> where
    Layout: Unpin,
    RenderP: Unpin,
    VertexDefinition: Unpin

impl<VertexDefinition, Layout, RenderP> UnwindSafe for GraphicsPipeline<VertexDefinition, Layout, RenderP> where
    Layout: UnwindSafe,
    RenderP: UnwindSafe,
    VertexDefinition: UnwindSafe

impl<VertexDefinition, Layout, RenderP> RefUnwindSafe for GraphicsPipeline<VertexDefinition, Layout, RenderP> where
    Layout: RefUnwindSafe,
    RenderP: RefUnwindSafe,
    VertexDefinition: RefUnwindSafe

Blanket Implementations

impl<T> DeviceOwned for T where
    T: Deref,
    <T as Deref>::Target: DeviceOwned
[src]

impl<T> Content for T[src]

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

impl<T> From<T> for T[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.

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

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

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