Enum vulkano::sampler::BorderColor
source · #[repr(u32)]
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
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 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
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.