Enum vulkano::pipeline::DynamicState
source · #[non_exhaustive]#[repr(i32)]pub enum DynamicState {
Show 28 variants
Viewport = 0,
Scissor = 1,
LineWidth = 2,
DepthBias = 3,
BlendConstants = 4,
DepthBounds = 5,
StencilCompareMask = 6,
StencilWriteMask = 7,
StencilReference = 8,
CullMode = 1_000_267_000,
FrontFace = 1_000_267_001,
PrimitiveTopology = 1_000_267_002,
ViewportWithCount = 1_000_267_003,
ScissorWithCount = 1_000_267_004,
DepthTestEnable = 1_000_267_006,
DepthWriteEnable = 1_000_267_007,
DepthCompareOp = 1_000_267_008,
DepthBoundsTestEnable = 1_000_267_009,
StencilTestEnable = 1_000_267_010,
StencilOp = 1_000_267_011,
RasterizerDiscardEnable = 1_000_377_001,
DepthBiasEnable = 1_000_377_002,
PrimitiveRestartEnable = 1_000_377_004,
DiscardRectangle = 1_000_099_000,
LineStipple = 1_000_259_000,
PatchControlPoints = 1_000_377_000,
LogicOp = 1_000_377_003,
ColorWriteEnable = 1_000_381_000,
}
Expand description
A particular state value within a pipeline that can be dynamically set by a command buffer.
Whenever a particular state is set to be dynamic while creating the pipeline, the corresponding predefined value in the pipeline’s create info is ignored, unless specified otherwise here.
If the dynamic state is used to enable/disable a certain functionality,
and the value in the create info is an Option
(for example, DynamicState::DepthTestEnable
and DepthStencilState::depth
),
then that Option
must be Some
when creating the pipeline,
in order to provide settings to use when the functionality is enabled.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Viewport = 0
The elements, but not the count, of
ViewportState::viewports
.
Set with
set_viewport
.
Scissor = 1
The elements, but not the count, of
ViewportState::scissors
.
Set with
set_scissor
.
LineWidth = 2
The value of
RasterizationState::line_width
.
Set with
set_line_width
.
DepthBias = 3
The value of
RasterizationState::depth_bias
.
Set with
set_depth_bias
.
BlendConstants = 4
The value of
ColorBlendState::blend_constants
.
Set with
set_blend_constants
.
DepthBounds = 5
The value, but not the Option
variant, of
DepthStencilState::depth_bounds
.
Set with
set_depth_bounds
.
StencilCompareMask = 6
The value of
StencilOpState::compare_mask
for both the front and back face.
Set with
set_stencil_compare_mask
.
StencilWriteMask = 7
The value of
StencilOpState::write_mask
for both the front and back face.
Set with
set_stencil_write_mask
.
StencilReference = 8
The value of
StencilOpState::reference
for both the front and back face.
Set with
set_stencil_reference
.
CullMode = 1_000_267_000
The value of
RasterizationState::cull_mode
.
Set with
set_cull_mode
.
FrontFace = 1_000_267_001
The value of
RasterizationState::front_face
.
Set with
set_front_face
.
PrimitiveTopology = 1_000_267_002
The value of
InputAssemblyState::topology
.
Set with
set_primitive_topology
.
ViewportWithCount = 1_000_267_003
Both the elements and the count of
ViewportState::viewports
.
Set with
set_viewport_with_count
.
ScissorWithCount = 1_000_267_004
Both the elements and the count of
ViewportState::scissors
.
Set with
set_scissor_with_count
.
DepthTestEnable = 1_000_267_006
The Option
variant of
DepthStencilState::depth
.
Set with
set_depth_test_enable
.
DepthWriteEnable = 1_000_267_007
The value of
DepthState::write_enable
.
Set with
set_depth_write_enable
.
DepthCompareOp = 1_000_267_008
The value of
DepthState::compare_op
.
Set with
set_depth_compare_op
.
DepthBoundsTestEnable = 1_000_267_009
The Option
variant of
DepthStencilState::depth_bounds
.
Set with
set_depth_bounds_test_enable
.
StencilTestEnable = 1_000_267_010
The Option
variant of
DepthStencilState::stencil
.
Set with
set_stencil_test_enable
.
StencilOp = 1_000_267_011
The value of
StencilOpState::ops
for both the front and back face.
Set with
set_stencil_op
.
RasterizerDiscardEnable = 1_000_377_001
The value of
RasterizationState::rasterizer_discard_enable
.
Set with
set_rasterizer_discard_enable
.
DepthBiasEnable = 1_000_377_002
The Option
variant of
RasterizationState::depth_bias
.
Set with
set_depth_bias_enable
.
PrimitiveRestartEnable = 1_000_377_004
The value of
InputAssemblyState::primitive_restart_enable
.
Set with
set_primitive_restart_enable
.
DiscardRectangle = 1_000_099_000
The elements, but not count, of
DiscardRectangleState::rectangles
.
Set with
set_discard_rectangle
.
LineStipple = 1_000_259_000
The value of
RasterizationState::line_stipple
.
Set with
set_line_stipple
.
PatchControlPoints = 1_000_377_000
The value of
TessellationState::patch_control_points
.
Set with
set_patch_control_points
.
LogicOp = 1_000_377_003
The value of
ColorBlendState::logic_op
.
Set with
set_logic_op
.
ColorWriteEnable = 1_000_381_000
The value of
ColorBlendAttachmentState::color_write_enable
for every attachment.
Set with
set_color_write_enable
.
Trait Implementations§
source§impl Clone for DynamicState
impl Clone for DynamicState
source§fn clone(&self) -> DynamicState
fn clone(&self) -> DynamicState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DynamicState
impl Debug for DynamicState
source§impl From<DynamicState> for DynamicState
impl From<DynamicState> for DynamicState
source§fn from(val: DynamicState) -> Self
fn from(val: DynamicState) -> Self
source§impl Hash for DynamicState
impl Hash for DynamicState
source§impl PartialEq for DynamicState
impl PartialEq for DynamicState
source§fn eq(&self, other: &DynamicState) -> bool
fn eq(&self, other: &DynamicState) -> bool
self
and other
values to be equal, and is used
by ==
.