#[repr(C)]pub struct SubresourceLayout {
pub offset: DeviceSize,
pub size: DeviceSize,
pub row_pitch: DeviceSize,
pub array_pitch: DeviceSize,
pub depth_pitch: DeviceSize,
}Expand description
Native structure VkSubresourceLayout.
Fields§
§offset: DeviceSizeNative field offset.
size: DeviceSizeNative field size.
row_pitch: DeviceSizeNative field rowPitch.
array_pitch: DeviceSizeNative field arrayPitch.
depth_pitch: DeviceSizeNative field depthPitch.
Implementations§
Source§impl SubresourceLayout
impl SubresourceLayout
Sourcepub fn set_offset(self, value: DeviceSize) -> Self
pub fn set_offset(self, value: DeviceSize) -> Self
Set native field offset without native effects.
Sourcepub fn set_size(self, value: DeviceSize) -> Self
pub fn set_size(self, value: DeviceSize) -> Self
Set native field size without native effects.
Sourcepub fn set_row_pitch(self, value: DeviceSize) -> Self
pub fn set_row_pitch(self, value: DeviceSize) -> Self
Set native field rowPitch without native effects.
Sourcepub fn set_array_pitch(self, value: DeviceSize) -> Self
pub fn set_array_pitch(self, value: DeviceSize) -> Self
Set native field arrayPitch without native effects.
Sourcepub fn set_depth_pitch(self, value: DeviceSize) -> Self
pub fn set_depth_pitch(self, value: DeviceSize) -> Self
Set native field depthPitch without native effects.
Trait Implementations§
Source§impl Clone for SubresourceLayout
impl Clone for SubresourceLayout
impl Copy for SubresourceLayout
Auto Trait Implementations§
impl Forget for SubresourceLayout
impl Freeze for SubresourceLayout
impl Move for SubresourceLayout
impl RefUnwindSafe for SubresourceLayout
impl Send for SubresourceLayout
impl Sync for SubresourceLayout
impl Unpin for SubresourceLayout
impl UnsafeUnpin for SubresourceLayout
impl UnwindSafe for SubresourceLayout
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