Enum vulkano::sampler::BorderColor [] [src]

#[repr(u32)]
pub enum BorderColor { FloatTransparentBlack, IntTransparentBlack, FloatOpaqueBlack, IntOpaqueBlack, FloatOpaqueWhite, IntOpaqueWhite, }

The color to use for the border of an image.

Only relevant if you use ClampToBorder.

Using a border color restricts the sampler to either floating-point images or integer images. See the documentation of the sampler module for more info.

Variants

The value (0.0, 0.0, 0.0, 0.0). Can only be used with floating-point images.

The value (0, 0, 0, 0). Can only be used with integer images.

The value (0.0, 0.0, 0.0, 1.0). Can only be used with floating-point identity-swizzled images.

The value (0, 0, 0, 1). Can only be used with integer identity-swizzled images.

The value (1.0, 1.0, 1.0, 1.0). Can only be used with floating-point images.

The value (1, 1, 1, 1). Can only be used with integer images.

Trait Implementations

impl Debug for BorderColor
[src]

Formats the value using the given formatter.

impl Copy for BorderColor
[src]

impl Clone for BorderColor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for BorderColor
[src]

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

This method tests for !=.

impl Eq for BorderColor
[src]

impl Hash for BorderColor
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more