pub struct GraphicsPipeline { /* private fields */ }
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
sourceimpl GraphicsPipeline
impl GraphicsPipeline
sourcepub fn start<'a>(
) -> GraphicsPipelineBuilder<'static, 'static, 'static, 'static, 'static, VertexInputState, (), (), (), (), ()>
pub fn start<'a>(
) -> GraphicsPipelineBuilder<'static, 'static, 'static, 'static, 'static, VertexInputState, (), (), (), (), ()>
Starts the building process of a graphics pipeline. Returns a builder object that you can fill with the various parameters.
sourcepub fn render_pass(&self) -> &PipelineRenderPassType
pub fn render_pass(&self) -> &PipelineRenderPassType
Returns the render pass this graphics pipeline is rendering to.
sourcepub fn descriptor_requirements(
&self
) -> impl ExactSizeIterator<Item = ((u32, u32), &DescriptorRequirements)>
pub fn descriptor_requirements(
&self
) -> impl ExactSizeIterator<Item = ((u32, u32), &DescriptorRequirements)>
Returns an iterator over the descriptor requirements for this pipeline.
sourcepub fn vertex_input_state(&self) -> &VertexInputState
pub fn vertex_input_state(&self) -> &VertexInputState
Returns the vertex input state used to create this pipeline.
sourcepub fn input_assembly_state(&self) -> &InputAssemblyState
pub fn input_assembly_state(&self) -> &InputAssemblyState
Returns the input assembly state used to create this pipeline.
sourcepub fn tessellation_state(&self) -> Option<&TessellationState>
pub fn tessellation_state(&self) -> Option<&TessellationState>
Returns the tessellation state used to create this pipeline.
sourcepub fn viewport_state(&self) -> Option<&ViewportState>
pub fn viewport_state(&self) -> Option<&ViewportState>
Returns the viewport state used to create this pipeline.
sourcepub fn discard_rectangle_state(&self) -> Option<&DiscardRectangleState>
pub fn discard_rectangle_state(&self) -> Option<&DiscardRectangleState>
Returns the discard rectangle state used to create this pipeline.
sourcepub fn rasterization_state(&self) -> &RasterizationState
pub fn rasterization_state(&self) -> &RasterizationState
Returns the rasterization state used to create this pipeline.
sourcepub fn multisample_state(&self) -> Option<&MultisampleState>
pub fn multisample_state(&self) -> Option<&MultisampleState>
Returns the multisample state used to create this pipeline.
sourcepub fn depth_stencil_state(&self) -> Option<&DepthStencilState>
pub fn depth_stencil_state(&self) -> Option<&DepthStencilState>
Returns the depth/stencil state used to create this pipeline.
sourcepub fn color_blend_state(&self) -> Option<&ColorBlendState>
pub fn color_blend_state(&self) -> Option<&ColorBlendState>
Returns the color blend state used to create this pipeline.
sourcepub fn dynamic_state(&self, state: DynamicState) -> Option<bool>
pub fn dynamic_state(&self, state: DynamicState) -> Option<bool>
Returns whether a particular state is must be dynamically set.
None
is returned if the pipeline does not contain this state. Previously set dynamic
state is not disturbed when binding it.
sourcepub fn dynamic_states(
&self
) -> impl ExactSizeIterator<Item = (DynamicState, bool)> + '_
pub fn dynamic_states(
&self
) -> impl ExactSizeIterator<Item = (DynamicState, bool)> + '_
Returns all potentially dynamic states in the pipeline, and whether they are dynamic or not.
Trait Implementations
sourceimpl Debug for GraphicsPipeline
impl Debug for GraphicsPipeline
sourceimpl DeviceOwned for GraphicsPipeline
impl DeviceOwned for GraphicsPipeline
sourceimpl Drop for GraphicsPipeline
impl Drop for GraphicsPipeline
sourceimpl Hash for GraphicsPipeline
impl Hash for GraphicsPipeline
sourceimpl PartialEq<GraphicsPipeline> for GraphicsPipeline
impl PartialEq<GraphicsPipeline> for GraphicsPipeline
sourceimpl Pipeline for GraphicsPipeline
impl Pipeline for GraphicsPipeline
sourcefn bind_point(&self) -> PipelineBindPoint
fn bind_point(&self) -> PipelineBindPoint
Returns the bind point of this pipeline.
sourcefn layout(&self) -> &Arc<PipelineLayout>
fn layout(&self) -> &Arc<PipelineLayout>
Returns the pipeline layout used in this pipeline.
sourcefn num_used_descriptor_sets(&self) -> u32
fn num_used_descriptor_sets(&self) -> u32
Returns the number of descriptor sets actually accessed by this pipeline. This may be less than the number of sets in the pipeline layout. Read more
sourceimpl VulkanObject for GraphicsPipeline
impl VulkanObject for GraphicsPipeline
sourcefn internal_object(&self) -> Pipeline
fn internal_object(&self) -> Pipeline
Returns a reference to the object.
impl Eq for GraphicsPipeline
Auto Trait Implementations
impl RefUnwindSafe for GraphicsPipeline
impl Send for GraphicsPipeline
impl Sync for GraphicsPipeline
impl Unpin for GraphicsPipeline
impl UnwindSafe for GraphicsPipeline
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more