Enum vulkano::sampler::BorderColor [−][src]
#[repr(i32)] pub enum BorderColor { FloatTransparentBlack, IntTransparentBlack, FloatOpaqueBlack, IntOpaqueBlack, FloatOpaqueWhite, IntOpaqueWhite, }
Expand description
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for BorderColor
impl Send for BorderColor
impl Sync for BorderColor
impl Unpin for BorderColor
impl UnwindSafe for BorderColor
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.