Struct vulkano::format::FormatProperties
source · pub struct FormatProperties {
pub linear_tiling_features: FormatFeatures,
pub optimal_tiling_features: FormatFeatures,
pub buffer_features: FormatFeatures,
pub drm_format_modifier_properties: Vec<DrmFormatModifierProperties>,
pub _ne: NonExhaustive,
}
Expand description
The properties of a format that are supported by a physical device.
Fields§
§linear_tiling_features: FormatFeatures
Features available for images with linear tiling.
optimal_tiling_features: FormatFeatures
Features available for images with optimal tiling.
buffer_features: FormatFeatures
Features available for buffers.
drm_format_modifier_properties: Vec<DrmFormatModifierProperties>
The properties of the format when combined with a Linux DRM format modifier.
This will be empty if the ext_image_drm_format_modifier
extension is not supported
by the physical device.
_ne: NonExhaustive
Implementations§
source§impl FormatProperties
impl FormatProperties
sourcepub fn format_features(
&self,
tiling: ImageTiling,
drm_format_modifiers: &[u64]
) -> FormatFeatures
pub fn format_features( &self, tiling: ImageTiling, drm_format_modifiers: &[u64] ) -> FormatFeatures
Returns the format features for the specified tiling.
sourcepub fn potential_format_features(&self) -> FormatFeatures
pub fn potential_format_features(&self) -> FormatFeatures
Returns the potential format features, following the definition of https://registry.khronos.org/vulkan/specs/1.3-extensions/html/chap47.html#potential-format-features.
Trait Implementations§
source§impl Clone for FormatProperties
impl Clone for FormatProperties
source§fn clone(&self) -> FormatProperties
fn clone(&self) -> FormatProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FormatProperties
impl Debug for FormatProperties
Auto Trait Implementations§
impl RefUnwindSafe for FormatProperties
impl Send for FormatProperties
impl Sync for FormatProperties
impl Unpin for FormatProperties
impl UnwindSafe for FormatProperties
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more