#[repr(C)]pub struct VideoFormatPropertiesKHR<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub format: Format,
pub component_mapping: ComponentMapping,
pub image_create_flags: ImageCreateFlags,
pub image_type: ImageType,
pub image_tiling: ImageTiling,
pub image_usage_flags: ImageUsageFlags,
pub _marker: PhantomData<&'a ()>,
}Expand description
Fields§
§s_type: StructureType§p_next: *mut c_void§format: Format§component_mapping: ComponentMapping§image_create_flags: ImageCreateFlags§image_type: ImageType§image_tiling: ImageTiling§image_usage_flags: ImageUsageFlags§_marker: PhantomData<&'a ()>Implementations§
Source§impl<'a> VideoFormatPropertiesKHR<'a>
impl<'a> VideoFormatPropertiesKHR<'a>
pub fn format(self, format: Format) -> Self
pub fn component_mapping(self, component_mapping: ComponentMapping) -> Self
pub fn image_create_flags(self, image_create_flags: ImageCreateFlags) -> Self
pub fn image_type(self, image_type: ImageType) -> Self
pub fn image_tiling(self, image_tiling: ImageTiling) -> Self
pub fn image_usage_flags(self, image_usage_flags: ImageUsageFlags) -> Self
Sourcepub fn push_next<T: ExtendsVideoFormatPropertiesKHR + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsVideoFormatPropertiesKHR + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C, and you call x.push_next(&mut D), then the
chain will look like A -> D -> B -> C.
Trait Implementations§
Source§impl<'a> Clone for VideoFormatPropertiesKHR<'a>
impl<'a> Clone for VideoFormatPropertiesKHR<'a>
Source§fn clone(&self) -> VideoFormatPropertiesKHR<'a>
fn clone(&self) -> VideoFormatPropertiesKHR<'a>
Returns a duplicate 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<'a> Debug for VideoFormatPropertiesKHR<'a>
impl<'a> Debug for VideoFormatPropertiesKHR<'a>
Source§impl Default for VideoFormatPropertiesKHR<'_>
impl Default for VideoFormatPropertiesKHR<'_>
Source§impl<'a> TaggedStructure for VideoFormatPropertiesKHR<'a>
impl<'a> TaggedStructure for VideoFormatPropertiesKHR<'a>
const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_FORMAT_PROPERTIES_KHR
impl<'a> Copy for VideoFormatPropertiesKHR<'a>
impl Send for VideoFormatPropertiesKHR<'_>
impl Sync for VideoFormatPropertiesKHR<'_>
Auto Trait Implementations§
impl<'a> Freeze for VideoFormatPropertiesKHR<'a>
impl<'a> RefUnwindSafe for VideoFormatPropertiesKHR<'a>
impl<'a> Unpin for VideoFormatPropertiesKHR<'a>
impl<'a> UnwindSafe for VideoFormatPropertiesKHR<'a>
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