Enum wgpu_types::SamplerBorderColor
source · #[repr(C)]
pub enum SamplerBorderColor {
TransparentBlack,
OpaqueBlack,
OpaqueWhite,
Zero,
}
Expand description
Color variation to use when sampler addressing mode is AddressMode::ClampToBorder
Variants§
TransparentBlack
[0, 0, 0, 0]
OpaqueBlack
[0, 0, 0, 1]
OpaqueWhite
[1, 1, 1, 1]
Zero
On the Metal backend, this is equivalent to TransparentBlack
for
textures that have an alpha component, and equivalent to OpaqueBlack
for textures that do not have an alpha component. On other backends,
this is equivalent to TransparentBlack
. Requires
Features::ADDRESS_MODE_CLAMP_TO_ZERO
. Not supported on the web.
Trait Implementations§
source§impl Clone for SamplerBorderColor
impl Clone for SamplerBorderColor
source§fn clone(&self) -> SamplerBorderColor
fn clone(&self) -> SamplerBorderColor
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 SamplerBorderColor
impl Debug for SamplerBorderColor
source§impl<'de> Deserialize<'de> for SamplerBorderColor
impl<'de> Deserialize<'de> for SamplerBorderColor
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SamplerBorderColor
impl Hash for SamplerBorderColor
source§impl PartialEq<SamplerBorderColor> for SamplerBorderColor
impl PartialEq<SamplerBorderColor> for SamplerBorderColor
source§fn eq(&self, other: &SamplerBorderColor) -> bool
fn eq(&self, other: &SamplerBorderColor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.