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 = 100i32

Source§

impl AsFormat for [f32; 2]

Source§

const FORMAT: VkFormat = 103i32

Source§

impl AsFormat for [f32; 3]

Source§

const FORMAT: VkFormat = 106i32

Source§

impl AsFormat for [f32; 4]

Source§

const FORMAT: VkFormat = 109i32

Implementors§