Struct gfx_hal::format::Properties
source · [−]pub struct Properties {
pub linear_tiling: ImageFeature,
pub optimal_tiling: ImageFeature,
pub buffer_features: BufferFeature,
pub drm_format_properties: Vec<DrmFormatProperties>,
}
Expand description
Format properties of the physical device.
Fields
linear_tiling: ImageFeature
A bitmask of the features supported when an image with linear tiling is requested. Linear tiling has a known layout in-memory so data can be copied to and from host memory.
optimal_tiling: ImageFeature
A bitmask of the features supported when an image with optimal tiling is requested. Optimal tiling is arranged however the GPU wants; its exact layout is undefined.
buffer_features: BufferFeature
The features supported by buffers.
drm_format_properties: Vec<DrmFormatProperties>
Drm format properties
Trait Implementations
sourceimpl Clone for Properties
impl Clone for Properties
sourcefn clone(&self) -> Properties
fn clone(&self) -> Properties
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 Properties
impl Debug for Properties
sourceimpl Default for Properties
impl Default for Properties
sourcefn default() -> Properties
fn default() -> Properties
Returns the “default value” for a type. Read more
sourceimpl Hash for Properties
impl Hash for Properties
sourceimpl PartialEq<Properties> for Properties
impl PartialEq<Properties> for Properties
sourcefn eq(&self, other: &Properties) -> bool
fn eq(&self, other: &Properties) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Properties) -> bool
fn ne(&self, other: &Properties) -> bool
This method tests for !=
.
impl Eq for Properties
impl StructuralEq for Properties
impl StructuralPartialEq for Properties
Auto Trait Implementations
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
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