#[repr(C)]pub struct VkImageSubresourceRange {
pub aspectMask: VkImageAspectFlags,
pub baseMipLevel: u32,
pub levelCount: u32,
pub baseArrayLayer: u32,
pub layerCount: u32,
}Fields§
§aspectMask: VkImageAspectFlags§baseMipLevel: u32§levelCount: u32§baseArrayLayer: u32§layerCount: u32Implementations§
Source§impl VkImageSubresourceRange
impl VkImageSubresourceRange
Sourcepub const fn new(
aspect_mask: AspectMask,
mip_range: Range<u32>,
array_layer_range: Range<u32>,
) -> Self
pub const fn new( aspect_mask: AspectMask, mip_range: Range<u32>, array_layer_range: Range<u32>, ) -> Self
Constructs a new ImageSubresourceRange data
Sourcepub const fn subresource(
&self,
mip_level_offset: u32,
array_layer_offset: u32,
) -> ImageSubresource
pub const fn subresource( &self, mip_level_offset: u32, array_layer_offset: u32, ) -> ImageSubresource
Retrieves single subresource slice in this range
Trait Implementations§
Source§impl Clone for VkImageSubresourceRange
impl Clone for VkImageSubresourceRange
Source§fn clone(&self) -> VkImageSubresourceRange
fn clone(&self) -> VkImageSubresourceRange
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 moreAuto Trait Implementations§
impl Freeze for VkImageSubresourceRange
impl RefUnwindSafe for VkImageSubresourceRange
impl Send for VkImageSubresourceRange
impl Sync for VkImageSubresourceRange
impl Unpin for VkImageSubresourceRange
impl UnwindSafe for VkImageSubresourceRange
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