Enum vulkano::sampler::BorderColor
source · [−]#[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
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 more
sourceimpl 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
Performs the conversion.
sourceimpl Hash for BorderColor
impl Hash for BorderColor
sourceimpl PartialEq<BorderColor> for BorderColor
impl PartialEq<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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more