pub enum AttachmentKind {
Color,
DepthStencil,
Depth,
}Expand description
Frame buffer attachment kind.
Variants§
Color
Color attachment, it should have a format that supports rendering (for example it cannot be a compressed texture format).
DepthStencil
Combined depth + stencil (usually it is 24 bits for depth and 8 for stencil) attachment.
Depth
Depth-only attachment. Usually it is 16 or 32 bits texture.
Trait Implementations§
Source§impl Clone for AttachmentKind
impl Clone for AttachmentKind
Source§fn clone(&self) -> AttachmentKind
fn clone(&self) -> AttachmentKind
Returns a duplicate 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 AttachmentKind
impl Debug for AttachmentKind
Source§impl Hash for AttachmentKind
impl Hash for AttachmentKind
Source§impl PartialEq for AttachmentKind
impl PartialEq for AttachmentKind
Source§impl PartialOrd for AttachmentKind
impl PartialOrd for AttachmentKind
impl Copy for AttachmentKind
impl Eq for AttachmentKind
impl StructuralPartialEq for AttachmentKind
Auto Trait Implementations§
impl Freeze for AttachmentKind
impl RefUnwindSafe for AttachmentKind
impl Send for AttachmentKind
impl Sync for AttachmentKind
impl Unpin for AttachmentKind
impl UnsafeUnpin for AttachmentKind
impl UnwindSafe for AttachmentKind
Blanket Implementations§
Source§impl<T> AsyncTaskResult for T
impl<T> AsyncTaskResult for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.