Struct vulkano::swapchain::RectangleLayer
source · Expand description
Represents a rectangular region on an image layer.
Fields
offset: [i32; 2]
Coordinates in pixels of the top-left hand corner of the rectangle.
extent: [u32; 2]
Dimensions in pixels of the rectangle.
layer: u32
The layer of the image. For images with only one layer, the value of layer must be 0.
Implementations
sourceimpl RectangleLayer
impl RectangleLayer
sourcepub fn is_compatible_with<W>(&self, swapchain: &Swapchain<W>) -> bool
pub fn is_compatible_with<W>(&self, swapchain: &Swapchain<W>) -> bool
Returns true if this rectangle layer is compatible with swapchain.
Trait Implementations
sourceimpl Clone for RectangleLayer
impl Clone for RectangleLayer
sourcefn clone(&self) -> RectangleLayer
fn clone(&self) -> RectangleLayer
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 RectangleLayer
impl Debug for RectangleLayer
sourceimpl PartialEq<RectangleLayer> for RectangleLayer
impl PartialEq<RectangleLayer> for RectangleLayer
sourcefn eq(&self, other: &RectangleLayer) -> bool
fn eq(&self, other: &RectangleLayer) -> bool
impl Copy for RectangleLayer
impl Eq for RectangleLayer
impl StructuralEq for RectangleLayer
impl StructuralPartialEq for RectangleLayer
Auto Trait Implementations
impl RefUnwindSafe for RectangleLayer
impl Send for RectangleLayer
impl Sync for RectangleLayer
impl Unpin for RectangleLayer
impl UnwindSafe for RectangleLayer
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.