#[repr(C)]pub struct ImageSubresource {
pub aspect_mask: ImageAspectFlags,
pub mip_level: u32,
pub array_layer: u32,
}Expand description
Native structure VkImageSubresource.
Fields§
§aspect_mask: ImageAspectFlagsNative field aspectMask.
mip_level: u32Native field mipLevel.
array_layer: u32Native field arrayLayer.
Implementations§
Source§impl ImageSubresource
impl ImageSubresource
Sourcepub fn set_aspect_mask(self, value: ImageAspectFlags) -> Self
pub fn set_aspect_mask(self, value: ImageAspectFlags) -> Self
Set native field aspectMask without native effects.
Sourcepub fn set_mip_level(self, value: u32) -> Self
pub fn set_mip_level(self, value: u32) -> Self
Set native field mipLevel without native effects.
Sourcepub fn set_array_layer(self, value: u32) -> Self
pub fn set_array_layer(self, value: u32) -> Self
Set native field arrayLayer without native effects.
Trait Implementations§
Source§impl Clone for ImageSubresource
impl Clone for ImageSubresource
impl Copy for ImageSubresource
Auto Trait Implementations§
impl Forget for ImageSubresource
impl Freeze for ImageSubresource
impl Move for ImageSubresource
impl RefUnwindSafe for ImageSubresource
impl Send for ImageSubresource
impl Sync for ImageSubresource
impl Unpin for ImageSubresource
impl UnsafeUnpin for ImageSubresource
impl UnwindSafe for ImageSubresource
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