Struct vulkano::pipeline::graphics::discard_rectangle::DiscardRectangleState [−][src]
pub struct DiscardRectangleState {
pub mode: DiscardRectangleMode,
pub rectangles: PartialStateMode<Vec<Scissor>, u32>,
}
Expand description
The state in a graphics pipeline describing how the discard rectangle test should behave.
Fields
mode: DiscardRectangleMode
Sets whether the discard rectangle test operates inclusively or exclusively.
rectangles: PartialStateMode<Vec<Scissor>, u32>
Specifies the discard rectangles. If set to Dynamic
, it specifies only the number of
rectangles used from the dynamic state.
If set to Dynamic
or to Fixed
with a non-empty list, the
ext_discard_rectangles
extension must be enabled on the device.
Implementations
Trait Implementations
Returns DiscardRectangleState::new
.
Auto Trait Implementations
impl RefUnwindSafe for DiscardRectangleState
impl Send for DiscardRectangleState
impl Sync for DiscardRectangleState
impl Unpin for DiscardRectangleState
impl UnwindSafe for DiscardRectangleState
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.