Enum vulkano::image::sampler::BorderColor
source · #[non_exhaustive]#[repr(i32)]pub enum BorderColor {
FloatTransparentBlack = 0,
IntTransparentBlack = 1,
FloatOpaqueBlack = 2,
IntOpaqueBlack = 3,
FloatOpaqueWhite = 4,
IntOpaqueWhite = 5,
}
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.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FloatTransparentBlack = 0
The value (0.0, 0.0, 0.0, 0.0)
. Can only be used with floating-point images.
IntTransparentBlack = 1
The value (0, 0, 0, 0)
. Can only be used with integer images.
FloatOpaqueBlack = 2
The value (0.0, 0.0, 0.0, 1.0)
. Can only be used with floating-point identity-swizzled
images.
IntOpaqueBlack = 3
The value (0, 0, 0, 1)
. Can only be used with integer identity-swizzled images.
FloatOpaqueWhite = 4
The value (1.0, 1.0, 1.0, 1.0)
. Can only be used with floating-point images.
IntOpaqueWhite = 5
The value (1, 1, 1, 1)
. Can only be used with integer images.
Trait Implementations§
source§impl Clone for BorderColor
impl Clone for BorderColor
source§fn clone(&self) -> BorderColor
fn clone(&self) -> BorderColor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BorderColor
impl Debug for BorderColor
source§impl From<BorderColor> for BorderColor
impl From<BorderColor> for BorderColor
source§fn from(val: BorderColor) -> Self
fn from(val: BorderColor) -> Self
Converts to this type from the input type.
source§impl Hash for BorderColor
impl Hash for BorderColor
source§impl PartialEq for BorderColor
impl PartialEq for BorderColor
source§fn eq(&self, other: &BorderColor) -> bool
fn eq(&self, other: &BorderColor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<BorderColor> for BorderColor
impl TryFrom<BorderColor> for BorderColor
impl Copy for BorderColor
impl Eq for BorderColor
impl StructuralEq for BorderColor
impl StructuralPartialEq for BorderColor
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more