Struct vulkano::swapchain::SupportedCompositeAlpha
source · pub struct SupportedCompositeAlpha {
pub opaque: bool,
pub pre_multiplied: bool,
pub post_multiplied: bool,
pub inherit: bool,
}
Expand description
List of supported composite alpha modes.
See the docs of CompositeAlpha
.
Fields
opaque: bool
pre_multiplied: bool
post_multiplied: bool
inherit: bool
Implementations
sourceimpl SupportedCompositeAlpha
impl SupportedCompositeAlpha
sourcepub fn none() -> SupportedCompositeAlpha
pub fn none() -> SupportedCompositeAlpha
Builds a SupportedCompositeAlpha
with all fields set to false.
sourcepub fn supports(&self, value: CompositeAlpha) -> bool
pub fn supports(&self, value: CompositeAlpha) -> bool
Returns true if the given CompositeAlpha
is in this list.
sourcepub fn iter(&self) -> SupportedCompositeAlphaIter ⓘ
pub fn iter(&self) -> SupportedCompositeAlphaIter ⓘ
Returns an iterator to the list of supported composite alpha.
Trait Implementations
sourceimpl Clone for SupportedCompositeAlpha
impl Clone for SupportedCompositeAlpha
sourcefn clone(&self) -> SupportedCompositeAlpha
fn clone(&self) -> SupportedCompositeAlpha
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 SupportedCompositeAlpha
impl Debug for SupportedCompositeAlpha
sourceimpl PartialEq<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl PartialEq<SupportedCompositeAlpha> for SupportedCompositeAlpha
sourcefn eq(&self, other: &SupportedCompositeAlpha) -> bool
fn eq(&self, other: &SupportedCompositeAlpha) -> bool
impl Copy for SupportedCompositeAlpha
impl Eq for SupportedCompositeAlpha
impl StructuralEq for SupportedCompositeAlpha
impl StructuralPartialEq for SupportedCompositeAlpha
Auto Trait Implementations
impl RefUnwindSafe for SupportedCompositeAlpha
impl Send for SupportedCompositeAlpha
impl Sync for SupportedCompositeAlpha
impl Unpin for SupportedCompositeAlpha
impl UnwindSafe for SupportedCompositeAlpha
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.