Struct gfx_hal::DownlevelProperties[][src]

pub struct DownlevelProperties {
    pub compute_shaders: bool,
    pub shader_model: DownlevelShaderModel,
    pub storage_images: bool,
    pub read_only_depth_stencil: bool,
    pub device_local_image_copies: bool,
    pub non_power_of_two_mipmapped_textures: bool,
}

Propterties to indicate when the backend does not support full vulkan compliance.

Fields

compute_shaders: bool

Supports compute shaders.

shader_model: DownlevelShaderModel

Which collections of features shaders support. Defined in terms of D3D’s shader models.

storage_images: bool

Supports creating storage images.

read_only_depth_stencil: bool

Supports RODS

device_local_image_copies: bool

Supports copies to/from device-local memory and device-local images.

non_power_of_two_mipmapped_textures: bool

Supports textures with mipmaps which are non power of two.

Implementations

impl DownlevelProperties[src]

pub fn all_enabled() -> Self[src]

Enables all properties for a vulkan-complient backend.

Trait Implementations

impl Clone for DownlevelProperties[src]

impl Copy for DownlevelProperties[src]

impl Debug for DownlevelProperties[src]

impl Default for DownlevelProperties[src]

impl PartialEq<DownlevelProperties> for DownlevelProperties[src]

impl StructuralPartialEq for DownlevelProperties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.