Enum nannou::ui::backend::glium::glium::draw_parameters::DepthClamp [] [src]

pub enum DepthClamp {
    NoClamp,
    Clamp,
    ClampNear,
    ClampFar,
}

Specifies whether the depth value of samples should be clamped to 0.0 or 1.0.

Variants

Do not clamp. Samples with values outside of the [0.0, 1.0] range will be discarded.

This is the default value and is supported everywhere.

Clamp the depth values. All samples will always be drawn.

This value is only supported on OpenGL.

Depth values inferior to 0.0 will be clamped to 0.0.

This option is supported only by very few OpenGL devices.

Depth values superior to 1.0 will be clamped to 1.0.

This option is supported only by very few OpenGL devices.

Trait Implementations

impl Copy for DepthClamp
[src]

impl PartialEq<DepthClamp> for DepthClamp
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Clone for DepthClamp
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for DepthClamp
[src]

impl Debug for DepthClamp
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for DepthClamp

impl Sync for DepthClamp