Struct vulkano::pipeline::GraphicsPipeline [−][src]
pub struct GraphicsPipeline<VertexDefinition> { /* fields omitted */ }
Expand description
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.
Implementations
pub fn start<'a>(
) -> GraphicsPipelineBuilder<'static, 'static, 'static, 'static, 'static, BufferlessDefinition, (), (), (), (), ()>
pub fn start<'a>(
) -> GraphicsPipelineBuilder<'static, 'static, 'static, 'static, 'static, BufferlessDefinition, (), (), (), (), ()>
Starts the building process of a graphics pipeline. Returns a builder object that you can fill with the various parameters.
Returns the vertex definition used in the constructor.
Returns the render pass used in the constructor.
Returns true if the line width used by this pipeline is dynamic.
Returns the number of viewports and scissors of this pipeline.
Returns true if the viewports used by this pipeline are dynamic.
Returns true if the scissors used by this pipeline are dynamic.
Returns true if the depth bounds used by this pipeline are dynamic.
Returns true if the stencil compare masks used by this pipeline are dynamic.
Returns true if the stencil write masks used by this pipeline are dynamic.
Returns true if the stencil references used by this pipeline are dynamic.
Trait Implementations
impl<Mv> GraphicsPipelineAbstract for GraphicsPipeline<Mv> where
Mv: VertexSource<Vec<Arc<dyn BufferAccess + Send + Sync>>>,
impl<Mv> GraphicsPipelineAbstract for GraphicsPipeline<Mv> where
Mv: VertexSource<Vec<Arc<dyn BufferAccess + Send + Sync>>>,
Returns the pipeline layout used in the constructor.
Returns an opaque object that represents the inside of the graphics pipeline.
Returns true if the line width used by this pipeline is dynamic.
Returns the number of viewports and scissors of this pipeline.
Returns true if the viewports used by this pipeline are dynamic.
Returns true if the scissors used by this pipeline are dynamic.
Returns true if the depth bounds used by this pipeline are dynamic.
Returns true if the stencil compare masks used by this pipeline are dynamic.
Returns true if the stencil write masks used by this pipeline are dynamic.
Returns true if the stencil references used by this pipeline are dynamic.
impl<Mv> Hash for GraphicsPipeline<Mv> where
Mv: VertexSource<Vec<Arc<dyn BufferAccess + Send + Sync>>>,
impl<Mv> Hash for GraphicsPipeline<Mv> where
Mv: VertexSource<Vec<Arc<dyn BufferAccess + Send + Sync>>>,
impl<Mv> PartialEq<GraphicsPipeline<Mv>> for GraphicsPipeline<Mv> where
Mv: VertexSource<Vec<Arc<dyn BufferAccess + Send + Sync>>>,
impl<Mv> PartialEq<GraphicsPipeline<Mv>> for GraphicsPipeline<Mv> where
Mv: VertexSource<Vec<Arc<dyn BufferAccess + Send + Sync>>>,
type BuffersIter = <Mv as VertexDefinition>::BuffersIter
type BuffersIter = <Mv as VertexDefinition>::BuffersIter
Iterator that returns the offset, the stride (in bytes) and input rate of each buffer.
type AttribsIter = <Mv as VertexDefinition>::AttribsIter
type AttribsIter = <Mv as VertexDefinition>::AttribsIter
Iterator that returns the attribute location, buffer id, and infos.
fn definition(
&self,
interface: &ShaderInterface
) -> Result<(Self::BuffersIter, Self::AttribsIter), IncompatibleVertexDefinitionError>
fn definition(
&self,
interface: &ShaderInterface
) -> Result<(Self::BuffersIter, Self::AttribsIter), IncompatibleVertexDefinitionError>
Builds the vertex definition to use to link this definition to a vertex shader’s input interface. Read more
Returns a reference to the object.
impl<Mv> Eq for GraphicsPipeline<Mv> where
Mv: VertexSource<Vec<Arc<dyn BufferAccess + Send + Sync>>>,
Auto Trait Implementations
impl<VertexDefinition> RefUnwindSafe for GraphicsPipeline<VertexDefinition> where
VertexDefinition: RefUnwindSafe,
impl<VertexDefinition> Send for GraphicsPipeline<VertexDefinition> where
VertexDefinition: Send,
impl<VertexDefinition> Sync for GraphicsPipeline<VertexDefinition> where
VertexDefinition: Sync,
impl<VertexDefinition> Unpin for GraphicsPipeline<VertexDefinition> where
VertexDefinition: Unpin,
impl<VertexDefinition> UnwindSafe for GraphicsPipeline<VertexDefinition> where
VertexDefinition: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.