Trait vulkano::pipeline::GraphicsPipelineAbstract [−][src]
pub unsafe trait GraphicsPipelineAbstract: VertexSource<Vec<Arc<dyn BufferAccess + Send + Sync>>> + DeviceOwned { fn inner(&self) -> GraphicsPipelineSys<'_>; fn layout(&self) -> &Arc<PipelineLayout>; fn subpass(&self) -> &Subpass; fn vertex_input(&self) -> &VertexInput; fn has_dynamic_line_width(&self) -> bool; fn num_viewports(&self) -> u32; fn has_dynamic_viewports(&self) -> bool; fn has_dynamic_scissors(&self) -> bool; fn has_dynamic_depth_bounds(&self) -> bool; fn has_dynamic_stencil_compare_mask(&self) -> bool; fn has_dynamic_stencil_write_mask(&self) -> bool; fn has_dynamic_stencil_reference(&self) -> bool; }
Expand description
Trait implemented on objects that reference a graphics pipeline. Can be made into a trait
object.
When using this trait AutoCommandBufferBuilder::draw*
calls will need the buffers to be
wrapped in a vec!()
.
Required methods
fn inner(&self) -> GraphicsPipelineSys<'_>
fn inner(&self) -> GraphicsPipelineSys<'_>
Returns an opaque object that represents the inside of the graphics pipeline.
fn layout(&self) -> &Arc<PipelineLayout>
fn layout(&self) -> &Arc<PipelineLayout>
Returns the pipeline layout used in the constructor.
fn vertex_input(&self) -> &VertexInput
fn vertex_input(&self) -> &VertexInput
Returns the vertex input description of the graphics pipeline.
fn has_dynamic_line_width(&self) -> bool
fn has_dynamic_line_width(&self) -> bool
Returns true if the line width used by this pipeline is dynamic.
fn num_viewports(&self) -> u32
fn num_viewports(&self) -> u32
Returns the number of viewports and scissors of this pipeline.
fn has_dynamic_viewports(&self) -> bool
fn has_dynamic_viewports(&self) -> bool
Returns true if the viewports used by this pipeline are dynamic.
fn has_dynamic_scissors(&self) -> bool
fn has_dynamic_scissors(&self) -> bool
Returns true if the scissors used by this pipeline are dynamic.
fn has_dynamic_depth_bounds(&self) -> bool
fn has_dynamic_depth_bounds(&self) -> bool
Returns true if the depth bounds used by this pipeline are dynamic.
fn has_dynamic_stencil_compare_mask(&self) -> bool
fn has_dynamic_stencil_compare_mask(&self) -> bool
Returns true if the stencil compare masks used by this pipeline are dynamic.
fn has_dynamic_stencil_write_mask(&self) -> bool
fn has_dynamic_stencil_write_mask(&self) -> bool
Returns true if the stencil write masks used by this pipeline are dynamic.
fn has_dynamic_stencil_reference(&self) -> bool
fn has_dynamic_stencil_reference(&self) -> bool
Returns true if the stencil references used by this pipeline are dynamic.