Skip to main content

AsFormat

Trait AsFormat 

Source
pub trait AsFormat {
    const FORMAT: VkFormat;
}
Expand description

Provides commonly used corresponding VkFormat for types

Required Associated Constants§

Source

const FORMAT: VkFormat

commonly used VkFormat for this type

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 AsFormat for f32

Source§

const FORMAT: VkFormat = VK_FORMAT_R32_SFLOAT

Source§

impl AsFormat for [f32; 2]

Source§

const FORMAT: VkFormat = VK_FORMAT_R32G32_SFLOAT

Source§

impl AsFormat for [f32; 3]

Source§

const FORMAT: VkFormat = VK_FORMAT_R32G32B32_SFLOAT

Source§

impl AsFormat for [f32; 4]

Source§

const FORMAT: VkFormat = VK_FORMAT_R32G32B32A32_SFLOAT

Implementors§

Source§

impl AsFormat for VkExtent2D

Source§

const FORMAT: VkFormat = VK_FORMAT_R32G32_SFLOAT

Source§

impl AsFormat for VkExtent3D

Source§

const FORMAT: VkFormat = VK_FORMAT_R32G32B32_SFLOAT

Source§

impl AsFormat for VkOffset2D

Source§

const FORMAT: VkFormat = VK_FORMAT_R32G32_SFLOAT

Source§

impl AsFormat for VkOffset3D

Source§

const FORMAT: VkFormat = VK_FORMAT_R32G32B32_SFLOAT