Struct vulkano::pipeline::graphics::discard_rectangle::DiscardRectangleState
source · pub struct DiscardRectangleState {
pub mode: DiscardRectangleMode,
pub rectangles: Vec<Scissor>,
pub _ne: NonExhaustive,
}
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.
The default value is DiscardRectangleMode::Exclusive
.
rectangles: Vec<Scissor>
Specifies the discard rectangles.
When DynamicState::DiscardRectangle
is used, the values of each rectangle are ignored
and must be set dynamically, but the number of discard rectangles is fixed and
must be matched when setting the dynamic value.
If this not not empty, then the
ext_discard_rectangles
extension must be enabled on the device.
The default value is empty.
_ne: NonExhaustive
Implementations§
Trait Implementations§
source§impl Clone for DiscardRectangleState
impl Clone for DiscardRectangleState
source§fn clone(&self) -> DiscardRectangleState
fn clone(&self) -> DiscardRectangleState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DiscardRectangleState
impl Debug for DiscardRectangleState
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more