Enum vulkano::sampler::BorderColor
source · [−]#[non_exhaustive]
#[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.
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
The value (0.0, 0.0, 0.0, 0.0)
. Can only be used with floating-point images.
IntTransparentBlack
The value (0, 0, 0, 0)
. Can only be used with integer images.
FloatOpaqueBlack
The value (0.0, 0.0, 0.0, 1.0)
. Can only be used with floating-point identity-swizzled
images.
IntOpaqueBlack
The value (0, 0, 0, 1)
. Can only be used with integer identity-swizzled images.
FloatOpaqueWhite
The value (1.0, 1.0, 1.0, 1.0)
. Can only be used with floating-point images.
IntOpaqueWhite
The value (1, 1, 1, 1)
. Can only be used with integer images.
Trait Implementations
sourceimpl Clone for BorderColor
impl Clone for BorderColor
sourcefn clone(&self) -> BorderColor
fn clone(&self) -> BorderColor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BorderColor
impl Debug for BorderColor
sourceimpl From<BorderColor> for BorderColor
impl From<BorderColor> for BorderColor
sourcefn from(val: BorderColor) -> Self
fn from(val: BorderColor) -> Self
Converts to this type from the input type.
sourceimpl Hash for BorderColor
impl Hash for BorderColor
sourceimpl PartialEq<BorderColor> for BorderColor
impl PartialEq<BorderColor> for BorderColor
sourcefn eq(&self, other: &BorderColor) -> bool
fn eq(&self, other: &BorderColor) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more