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,
/* private fields */
}Expand description
Native structure VkVideoFormatPropertiesKHR.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *mut c_voidNative field pNext.
format: FormatNative field format.
component_mapping: ComponentMappingNative field componentMapping.
image_create_flags: ImageCreateFlagsNative field imageCreateFlags.
image_type: ImageTypeNative field imageType.
image_tiling: ImageTilingNative field imageTiling.
image_usage_flags: ImageUsageFlagsNative field imageUsageFlags.
Implementations§
Source§impl<'a> VideoFormatPropertiesKHR<'a>
impl<'a> VideoFormatPropertiesKHR<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_format(self, value: Format) -> Self
pub fn set_format(self, value: Format) -> Self
Set native field format without native effects.
Sourcepub fn set_component_mapping(self, value: ComponentMapping) -> Self
pub fn set_component_mapping(self, value: ComponentMapping) -> Self
Set native field componentMapping without native effects.
Sourcepub fn set_image_create_flags(self, value: ImageCreateFlags) -> Self
pub fn set_image_create_flags(self, value: ImageCreateFlags) -> Self
Set native field imageCreateFlags without native effects.
Sourcepub fn set_image_type(self, value: ImageType) -> Self
pub fn set_image_type(self, value: ImageType) -> Self
Set native field imageType without native effects.
Sourcepub fn set_image_tiling(self, value: ImageTiling) -> Self
pub fn set_image_tiling(self, value: ImageTiling) -> Self
Set native field imageTiling without native effects.
Sourcepub fn set_image_usage_flags(self, value: ImageUsageFlags) -> Self
pub fn set_image_usage_flags(self, value: ImageUsageFlags) -> Self
Set native field imageUsageFlags without native effects.
Sourcepub fn push_next<T: Extends<Self>>(
self,
next: &'a mut T,
) -> Result<Self, ConstructionError>
pub fn push_next<T: Extends<Self>>( self, next: &'a mut T, ) -> Result<Self, ConstructionError>
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
§Errors
Returns a construction error for a changed structure tag or already-linked node.