Struct vulkano::swapchain::RectangleLayer
[−]
[src]
pub struct RectangleLayer { pub offset: [i32; 2], pub extent: [u32; 2], pub layer: u32, }
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.
Methods
impl RectangleLayer
[src]
pub fn is_compatible_with<W>(&self, swapchain: &Swapchain<W>) -> bool
[src]
Returns true if this rectangle layer is compatible with swapchain.
Trait Implementations
impl Debug for RectangleLayer
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for RectangleLayer
[src]
impl Clone for RectangleLayer
[src]
fn clone(&self) -> RectangleLayer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for RectangleLayer
[src]
fn eq(&self, __arg_0: &RectangleLayer) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RectangleLayer) -> bool
[src]
This method tests for !=
.