Struct gfx_hal::DownlevelProperties
source · [−]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,
}
Expand description
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
sourceimpl DownlevelProperties
impl DownlevelProperties
sourcepub fn all_enabled() -> Self
pub fn all_enabled() -> Self
Enables all properties for a vulkan-complient backend.
Trait Implementations
sourceimpl Clone for DownlevelProperties
impl Clone for DownlevelProperties
sourcefn clone(&self) -> DownlevelProperties
fn clone(&self) -> DownlevelProperties
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DownlevelProperties
impl Debug for DownlevelProperties
sourceimpl Default for DownlevelProperties
impl Default for DownlevelProperties
sourcefn default() -> DownlevelProperties
fn default() -> DownlevelProperties
Returns the “default value” for a type. Read more
sourceimpl PartialEq<DownlevelProperties> for DownlevelProperties
impl PartialEq<DownlevelProperties> for DownlevelProperties
sourcefn eq(&self, other: &DownlevelProperties) -> bool
fn eq(&self, other: &DownlevelProperties) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DownlevelProperties) -> bool
fn ne(&self, other: &DownlevelProperties) -> bool
This method tests for !=
.
impl Copy for DownlevelProperties
impl StructuralPartialEq for DownlevelProperties
Auto Trait Implementations
impl RefUnwindSafe for DownlevelProperties
impl Send for DownlevelProperties
impl Sync for DownlevelProperties
impl Unpin for DownlevelProperties
impl UnwindSafe for DownlevelProperties
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more