Skip to main content

ImageSize

Trait ImageSize 

Source
pub trait ImageSize {
    const DIMENSION: VkImageType;

    // Required method
    fn conv(self) -> VkExtent3D;
}
Expand description

Image Dimension by corresponding extent type

Required Associated Constants§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ImageSize for u32

Source§

const DIMENSION: VkImageType = brvk::VK_IMAGE_TYPE_1D

Source§

fn conv(self) -> VkExtent3D

Implementors§

Source§

impl ImageSize for VkExtent2D

Source§

const DIMENSION: VkImageType = brvk::VK_IMAGE_TYPE_2D

Source§

impl ImageSize for VkExtent3D

Source§

const DIMENSION: VkImageType = brvk::VK_IMAGE_TYPE_3D