Struct vulkano::pipeline::graphics::discard_rectangle::DiscardRectangleState
source · [−]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
sourceimpl Clone for DiscardRectangleState
impl Clone for DiscardRectangleState
sourcefn clone(&self) -> DiscardRectangleState
fn clone(&self) -> DiscardRectangleState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DiscardRectangleState
impl Debug for DiscardRectangleState
sourceimpl Default for DiscardRectangleState
impl Default for DiscardRectangleState
sourcefn default() -> Self
fn default() -> Self
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more