Struct vulkano::swapchain::RectangleLayer
source · pub struct RectangleLayer {
pub offset: [u32; 2],
pub extent: [u32; 2],
pub layer: u32,
}
Expand description
Represents a rectangular region on an image layer.
Fields§
§offset: [u32; 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§
source§impl RectangleLayer
impl RectangleLayer
sourcepub fn is_compatible_with(&self, swapchain: &Swapchain) -> bool
pub fn is_compatible_with(&self, swapchain: &Swapchain) -> bool
Returns true if this rectangle layer is compatible with swapchain.
Trait Implementations§
source§impl Clone for RectangleLayer
impl Clone for RectangleLayer
source§fn clone(&self) -> RectangleLayer
fn clone(&self) -> RectangleLayer
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 RectangleLayer
impl Debug for RectangleLayer
source§impl From<&RectangleLayer> for RectLayerKHR
impl From<&RectangleLayer> for RectLayerKHR
source§fn from(val: &RectangleLayer) -> Self
fn from(val: &RectangleLayer) -> Self
Converts to this type from the input type.
source§impl PartialEq for RectangleLayer
impl PartialEq for RectangleLayer
source§fn eq(&self, other: &RectangleLayer) -> bool
fn eq(&self, other: &RectangleLayer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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