Enum vulkano::pipeline::depth_stencil::DepthBounds
[−]
[src]
pub enum DepthBounds { Disabled, Fixed(Range<f32>), Dynamic, }
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.
Methods
impl DepthBounds
[src]
pub fn is_dynamic(&self) -> bool
[src]
Returns true if equal to DepthBounds::Dynamic
.
Trait Implementations
impl Debug for DepthBounds
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for DepthBounds
[src]
fn clone(&self) -> DepthBounds
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for DepthBounds
[src]
fn eq(&self, __arg_0: &DepthBounds) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DepthBounds) -> bool
[src]
This method tests for !=
.