Enum vulkano::sampler::BorderColor
[−]
[src]
#[repr(u32)]pub enum BorderColor { FloatTransparentBlack, IntTransparentBlack, FloatOpaqueBlack, IntOpaqueBlack, FloatOpaqueWhite, IntOpaqueWhite, }
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
impl Debug for BorderColor
[src]
impl Copy for BorderColor
[src]
impl Clone for BorderColor
[src]
fn clone(&self) -> BorderColor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for BorderColor
[src]
fn eq(&self, __arg_0: &BorderColor) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.