Struct vulkano::pipeline::graphics::input_assembly::InputAssemblyState [−][src]
pub struct InputAssemblyState {
pub topology: PartialStateMode<PrimitiveTopology, PrimitiveTopologyClass>,
pub primitive_restart_enable: StateMode<bool>,
}
Expand description
The state in a graphics pipeline describing how the input assembly stage should behave.
Fields
topology: PartialStateMode<PrimitiveTopology, PrimitiveTopologyClass>
The type of primitives.
Note that some topologies require a feature to be enabled on the device.
If set to Dynamic
, the
extended_dynamic_state
feature must be
enabled on the device.
primitive_restart_enable: StateMode<bool>
If true, then when drawing with an index buffer, the special index value consisting of the
maximum unsigned value (0xff
, 0xffff
or 0xffffffff
) will tell the GPU that it is the
end of the current primitive. A new primitive will restart at the next index.
Primitive restart is mostly useful in combination with “strip” and “fan” topologies. “List” topologies require a feature to be enabled on the device when combined with primitive restart.
If set to Dynamic
, the
extended_dynamic_state
feature must be
enabled on the device.
Implementations
Creates an InputAssemblyState
with the TriangleList
topology and primitive restart
disabled.
Sets the primitive topology.
Sets the primitive topology to dynamic.
Enables primitive restart.
Sets primitive restart enable to dynmamic.
Trait Implementations
Returns InputAssemblyState::new()
.
Auto Trait Implementations
impl RefUnwindSafe for InputAssemblyState
impl Send for InputAssemblyState
impl Sync for InputAssemblyState
impl Unpin for InputAssemblyState
impl UnwindSafe for InputAssemblyState
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.