pub struct BlitMask {
pub color: bool,
pub depth: bool,
pub stencil: bool,
}
Expand description
Mask specifying, which kinds of buffers to copy when blitting between two frame buffers.
Fields§
§color: bool
If the color buffer should be copied.
depth: bool
If the depth buffer should be copied.
stencil: bool
If the stencil buffer should be copied.
Implementations§
source§impl BlitMask
impl BlitMask
sourcepub fn color_and_depth() -> Self
pub fn color_and_depth() -> Self
Constructs a bit mask, that will copy the color and the depth buffer.
sourcepub fn color_and_stencil() -> Self
pub fn color_and_stencil() -> Self
Constructs a bit mask, that will copy the color and the stencil buffer.
sourcepub fn depth_and_stencil() -> Self
pub fn depth_and_stencil() -> Self
Constructs a bit mask, that will copy the depth and the stencil buffer.
sourcepub fn color_and_depth_and_stencil() -> Self
pub fn color_and_depth_and_stencil() -> Self
Constructs a bit mask, that will copy the color, depth and stencil buffer.
Trait Implementations§
impl Copy for BlitMask
impl Eq for BlitMask
impl StructuralPartialEq for BlitMask
Auto Trait Implementations§
impl Freeze for BlitMask
impl RefUnwindSafe for BlitMask
impl Send for BlitMask
impl Sync for BlitMask
impl Unpin for BlitMask
impl UnwindSafe for BlitMask
Blanket Implementations§
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn 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.