Enum vulkano::pipeline::depth_stencil::DepthBounds
source · Expand description
Allows you to ask the GPU to exclude fragments that are outside of a certain range.
Variants
Disabled
The test is disabled. All fragments pass the depth bounds test.
Fixed(Range<f32>)
Fragments that are within the given range do pass the test. Values are depth values between 0.0 and 1.0.
Dynamic
The depth bounds test is enabled, but the range will need to specified when you submit a draw command.
Implementations
sourceimpl DepthBounds
impl DepthBounds
sourcepub fn is_dynamic(&self) -> bool
pub fn is_dynamic(&self) -> bool
Returns true if equal to DepthBounds::Dynamic
.
Trait Implementations
sourceimpl Clone for DepthBounds
impl Clone for DepthBounds
sourcefn clone(&self) -> DepthBounds
fn clone(&self) -> DepthBounds
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 DepthBounds
impl Debug for DepthBounds
sourceimpl PartialEq<DepthBounds> for DepthBounds
impl PartialEq<DepthBounds> for DepthBounds
sourcefn eq(&self, other: &DepthBounds) -> bool
fn eq(&self, other: &DepthBounds) -> bool
impl StructuralPartialEq for DepthBounds
Auto Trait Implementations
impl RefUnwindSafe for DepthBounds
impl Send for DepthBounds
impl Sync for DepthBounds
impl Unpin for DepthBounds
impl UnwindSafe for DepthBounds
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.