Struct vulkano::command_buffer::synced::CommandBufferState
source · [−]pub struct CommandBufferState<'a> { /* private fields */ }
Expand description
Allows you to retrieve the current state of a command buffer builder.
Implementations
sourceimpl<'a> CommandBufferState<'a>
impl<'a> CommandBufferState<'a>
sourcepub fn descriptor_set(
&self,
pipeline_bind_point: PipelineBindPoint,
set_num: u32
) -> Option<&'a SetOrPush>
pub fn descriptor_set(
&self,
pipeline_bind_point: PipelineBindPoint,
set_num: u32
) -> Option<&'a SetOrPush>
Returns the descriptor set currently bound to a given set number, or None
if nothing has
been bound yet.
sourcepub fn descriptor_sets_pipeline_layout(
&self,
pipeline_bind_point: PipelineBindPoint
) -> Option<&'a Arc<PipelineLayout>>
pub fn descriptor_sets_pipeline_layout(
&self,
pipeline_bind_point: PipelineBindPoint
) -> Option<&'a Arc<PipelineLayout>>
Returns the pipeline layout that describes all currently bound descriptor sets.
This can be the layout used to perform the last bind operation, but it can also be the layout of an earlier bind if it was compatible with more recent binds.
sourcepub fn index_buffer(&self) -> Option<(&'a Arc<dyn BufferAccess>, IndexType)>
pub fn index_buffer(&self) -> Option<(&'a Arc<dyn BufferAccess>, IndexType)>
Returns the index buffer currently bound, or None
if nothing has been bound yet.
sourcepub fn pipeline_compute(&self) -> Option<&'a Arc<ComputePipeline>>
pub fn pipeline_compute(&self) -> Option<&'a Arc<ComputePipeline>>
Returns the compute pipeline currently bound, or None
if nothing has been bound yet.
sourcepub fn pipeline_graphics(&self) -> Option<&'a Arc<GraphicsPipeline>>
pub fn pipeline_graphics(&self) -> Option<&'a Arc<GraphicsPipeline>>
Returns the graphics pipeline currently bound, or None
if nothing has been bound yet.
sourcepub fn vertex_buffer(
&self,
binding_num: u32
) -> Option<&'a Arc<dyn BufferAccess>>
pub fn vertex_buffer(
&self,
binding_num: u32
) -> Option<&'a Arc<dyn BufferAccess>>
Returns the vertex buffer currently bound to a given binding slot number, or None
if
nothing has been bound yet.
sourcepub fn push_constants(&self) -> &'a RangeSet<u32>
pub fn push_constants(&self) -> &'a RangeSet<u32>
Returns a set containing push constant bytes that have been set.
sourcepub fn push_constants_pipeline_layout(&self) -> Option<&'a Arc<PipelineLayout>>
pub fn push_constants_pipeline_layout(&self) -> Option<&'a Arc<PipelineLayout>>
Returns the pipeline layout that describes the current push constants.
This is the layout used to perform the last push constant write operation.
sourcepub fn blend_constants(&self) -> Option<[f32; 4]>
pub fn blend_constants(&self) -> Option<[f32; 4]>
Returns the current blend constants, or None
if nothing has been set yet.
sourcepub fn color_write_enable(&self) -> Option<&'a [bool]>
pub fn color_write_enable(&self) -> Option<&'a [bool]>
Returns the current color write enable settings, or None
if nothing has been set yet.
sourcepub fn cull_mode(&self) -> Option<CullMode>
pub fn cull_mode(&self) -> Option<CullMode>
Returns the current cull mode, or None
if nothing has been set yet.
sourcepub fn depth_bias(&self) -> Option<DepthBias>
pub fn depth_bias(&self) -> Option<DepthBias>
Returns the current depth bias settings, or None
if nothing has been set yet.
sourcepub fn depth_bias_enable(&self) -> Option<bool>
pub fn depth_bias_enable(&self) -> Option<bool>
Returns whether depth bias is enabled, or None
if nothing has been set yet.
sourcepub fn depth_bounds(&self) -> Option<RangeInclusive<f32>>
pub fn depth_bounds(&self) -> Option<RangeInclusive<f32>>
Returns the current depth bounds settings, or None
if nothing has been set yet.
sourcepub fn depth_bounds_test_enable(&self) -> Option<bool>
pub fn depth_bounds_test_enable(&self) -> Option<bool>
Returns whether depth bound testing is enabled, or None
if nothing has been set yet.
sourcepub fn depth_compare_op(&self) -> Option<CompareOp>
pub fn depth_compare_op(&self) -> Option<CompareOp>
Returns the current depth compare op, or None
if nothing has been set yet.
sourcepub fn depth_test_enable(&self) -> Option<bool>
pub fn depth_test_enable(&self) -> Option<bool>
Returns whether depth testing is enabled, or None
if nothing has been set yet.
sourcepub fn depth_write_enable(&self) -> Option<bool>
pub fn depth_write_enable(&self) -> Option<bool>
Returns whether depth write is enabled, or None
if nothing has been set yet.
sourcepub fn discard_rectangle(&self, num: u32) -> Option<&'a Scissor>
pub fn discard_rectangle(&self, num: u32) -> Option<&'a Scissor>
Returns the current discard rectangles, or None
if nothing has been set yet.
sourcepub fn front_face(&self) -> Option<FrontFace>
pub fn front_face(&self) -> Option<FrontFace>
Returns the current front face, or None
if nothing has been set yet.
sourcepub fn line_stipple(&self) -> Option<LineStipple>
pub fn line_stipple(&self) -> Option<LineStipple>
Returns the current line stipple settings, or None
if nothing has been set yet.
sourcepub fn line_width(&self) -> Option<f32>
pub fn line_width(&self) -> Option<f32>
Returns the current line width, or None
if nothing has been set yet.
sourcepub fn logic_op(&self) -> Option<LogicOp>
pub fn logic_op(&self) -> Option<LogicOp>
Returns the current logic op, or None
if nothing has been set yet.
sourcepub fn patch_control_points(&self) -> Option<u32>
pub fn patch_control_points(&self) -> Option<u32>
Returns the current number of patch control points, or None
if nothing has been set yet.
sourcepub fn primitive_restart_enable(&self) -> Option<bool>
pub fn primitive_restart_enable(&self) -> Option<bool>
Returns whether primitive restart is enabled, or None
if nothing has been set yet.
sourcepub fn primitive_topology(&self) -> Option<PrimitiveTopology>
pub fn primitive_topology(&self) -> Option<PrimitiveTopology>
Returns the current primitive topology, or None
if nothing has been set yet.
sourcepub fn rasterizer_discard_enable(&self) -> Option<bool>
pub fn rasterizer_discard_enable(&self) -> Option<bool>
Returns whether rasterizer discard is enabled, or None
if nothing has been set yet.
sourcepub fn scissor(&self, num: u32) -> Option<&'a Scissor>
pub fn scissor(&self, num: u32) -> Option<&'a Scissor>
Returns the current scissor for a given viewport slot, or None
if nothing has been set yet.
sourcepub fn scissor_with_count(&self) -> Option<&'a [Scissor]>
pub fn scissor_with_count(&self) -> Option<&'a [Scissor]>
Returns the current viewport-with-count settings, or None
if nothing has been set yet.
sourcepub fn stencil_compare_mask(&self) -> StencilStateDynamic
pub fn stencil_compare_mask(&self) -> StencilStateDynamic
Returns the current stencil compare masks.
sourcepub fn stencil_op(&self) -> StencilOpStateDynamic
pub fn stencil_op(&self) -> StencilOpStateDynamic
Returns the current stencil ops.
sourcepub fn stencil_reference(&self) -> StencilStateDynamic
pub fn stencil_reference(&self) -> StencilStateDynamic
Returns the current stencil references.
sourcepub fn stencil_test_enable(&self) -> Option<bool>
pub fn stencil_test_enable(&self) -> Option<bool>
Returns whether stencil testing is enabled, or None
if nothing has been set yet.
sourcepub fn stencil_write_mask(&self) -> StencilStateDynamic
pub fn stencil_write_mask(&self) -> StencilStateDynamic
Returns the current stencil write masks.
sourcepub fn viewport(&self, num: u32) -> Option<&'a Viewport>
pub fn viewport(&self, num: u32) -> Option<&'a Viewport>
Returns the current viewport for a given viewport slot, or None
if nothing has been set yet.
sourcepub fn viewport_with_count(&self) -> Option<&'a [Viewport]>
pub fn viewport_with_count(&self) -> Option<&'a [Viewport]>
Returns the current viewport-with-count settings, or None
if nothing has been set yet.
Trait Implementations
sourceimpl<'a> Clone for CommandBufferState<'a>
impl<'a> Clone for CommandBufferState<'a>
sourcefn clone(&self) -> CommandBufferState<'a>
fn clone(&self) -> CommandBufferState<'a>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more