[−][src]Struct vulkayes_core::resource::image::params::ImageSize
Implementations
impl ImageSize
[src]
pub const unsafe fn new(
image_type: ImageType,
width: NonZeroU32,
height: NonZeroU32,
depth: NonZeroU32,
array_layers: NonZeroU32,
mipmap_levels: NonZeroU32
) -> Self
[src]
image_type: ImageType,
width: NonZeroU32,
height: NonZeroU32,
depth: NonZeroU32,
array_layers: NonZeroU32,
mipmap_levels: NonZeroU32
) -> Self
Creates a new image size.
Safety
width
,height
anddepth
must be valid for givenimage_type
.array_layers
must be valid for givenimage_type
.mipmap_levels
must be valid for givenwidth
,height
anddepth
pub fn new_1d(
width: NonZeroU32,
array_layers: NonZeroU32,
mipmaps: MipmapLevels
) -> ImageSize1D
[src]
width: NonZeroU32,
array_layers: NonZeroU32,
mipmaps: MipmapLevels
) -> ImageSize1D
pub fn new_2d(
width: NonZeroU32,
height: NonZeroU32,
array_layers: NonZeroU32,
mipmaps: MipmapLevels
) -> ImageSize2D
[src]
width: NonZeroU32,
height: NonZeroU32,
array_layers: NonZeroU32,
mipmaps: MipmapLevels
) -> ImageSize2D
pub fn new_3d(
width: NonZeroU32,
height: NonZeroU32,
depth: NonZeroU32,
mipmaps: MipmapLevels
) -> ImageSize3D
[src]
width: NonZeroU32,
height: NonZeroU32,
depth: NonZeroU32,
mipmaps: MipmapLevels
) -> ImageSize3D
pub const fn image_type(&self) -> ImageType
[src]
pub const fn extent(&self) -> [NonZeroU32; 3]
[src]
pub const fn width(&self) -> NonZeroU32
[src]
pub const fn height(&self) -> NonZeroU32
[src]
pub const fn depth(&self) -> NonZeroU32
[src]
pub const fn array_layers(&self) -> NonZeroU32
[src]
pub const fn mipmap_levels(&self) -> NonZeroU32
[src]
pub fn complete_mipmap_chain_mipmaps(
width: NonZeroU32,
height: NonZeroU32,
depth: NonZeroU32
) -> NonZeroU32
[src]
width: NonZeroU32,
height: NonZeroU32,
depth: NonZeroU32
) -> NonZeroU32
pub unsafe fn from_image_create_info(info: &ImageCreateInfo) -> Self
[src]
Safety
info.extent.width
must be non-zeroinfo.extent.height
must be non-zeroinfo.extent.depth
must be non-zeroinfo.array_layers
must be non-zeroinfo.mip_levels
must be non-zero
Trait Implementations
impl Clone for ImageSize
[src]
impl Copy for ImageSize
[src]
impl Debug for ImageSize
[src]
impl Eq for ImageSize
[src]
impl From<ImageSize> for ImageSizeInfo
[src]
impl From<ImageSize1D> for ImageSize
[src]
fn from(value: ImageSize1D) -> Self
[src]
impl From<ImageSize2D> for ImageSize
[src]
fn from(value: ImageSize2D) -> Self
[src]
impl From<ImageSize3D> for ImageSize
[src]
fn from(value: ImageSize3D) -> Self
[src]
impl Hash for ImageSize
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<Extent2D> for ImageSize
[src]
impl Into<Extent3D> for ImageSize
[src]
impl PartialEq<ImageSize> for ImageSize
[src]
impl StructuralEq for ImageSize
[src]
impl StructuralPartialEq for ImageSize
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageSize
[src]
impl Send for ImageSize
[src]
impl Sync for ImageSize
[src]
impl Unpin for ImageSize
[src]
impl UnwindSafe for ImageSize
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,