pub struct BufferCollectionPropertiesFUCHSIA<'a> {Show 13 fields
pub s_type: StructureType,
pub p_next: *mut c_void,
pub memory_type_bits: u32,
pub buffer_count: u32,
pub create_info_index: u32,
pub sysmem_pixel_format: u64,
pub format_features: FormatFeatureFlags,
pub sysmem_color_space_index: SysmemColorSpaceFUCHSIA<'a>,
pub sampler_ycbcr_conversion_components: ComponentMapping,
pub suggested_ycbcr_model: SamplerYcbcrModelConversion,
pub suggested_ycbcr_range: SamplerYcbcrRange,
pub suggested_x_chroma_offset: ChromaLocation,
pub suggested_y_chroma_offset: ChromaLocation,
/* private fields */
}Expand description
Native structure VkBufferCollectionPropertiesFUCHSIA.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *mut c_voidNative field pNext.
memory_type_bits: u32Native field memoryTypeBits.
buffer_count: u32Native field bufferCount.
create_info_index: u32Native field createInfoIndex.
sysmem_pixel_format: u64Native field sysmemPixelFormat.
format_features: FormatFeatureFlagsNative field formatFeatures.
sysmem_color_space_index: SysmemColorSpaceFUCHSIA<'a>Native field sysmemColorSpaceIndex.
sampler_ycbcr_conversion_components: ComponentMappingNative field samplerYcbcrConversionComponents.
suggested_ycbcr_model: SamplerYcbcrModelConversionNative field suggestedYcbcrModel.
suggested_ycbcr_range: SamplerYcbcrRangeNative field suggestedYcbcrRange.
suggested_x_chroma_offset: ChromaLocationNative field suggestedXChromaOffset.
suggested_y_chroma_offset: ChromaLocationNative field suggestedYChromaOffset.
Implementations§
Source§impl<'a> BufferCollectionPropertiesFUCHSIA<'a>
impl<'a> BufferCollectionPropertiesFUCHSIA<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_memory_type_bits(self, value: u32) -> Self
pub fn set_memory_type_bits(self, value: u32) -> Self
Set native field memoryTypeBits without native effects.
Sourcepub fn set_buffer_count(self, value: u32) -> Self
pub fn set_buffer_count(self, value: u32) -> Self
Set native field bufferCount without native effects.
Sourcepub fn set_create_info_index(self, value: u32) -> Self
pub fn set_create_info_index(self, value: u32) -> Self
Set native field createInfoIndex without native effects.
Sourcepub fn set_sysmem_pixel_format(self, value: u64) -> Self
pub fn set_sysmem_pixel_format(self, value: u64) -> Self
Set native field sysmemPixelFormat without native effects.
Sourcepub fn set_format_features(self, value: FormatFeatureFlags) -> Self
pub fn set_format_features(self, value: FormatFeatureFlags) -> Self
Set native field formatFeatures without native effects.
Sourcepub fn set_sysmem_color_space_index(
self,
value: SysmemColorSpaceFUCHSIA<'a>,
) -> Self
pub fn set_sysmem_color_space_index( self, value: SysmemColorSpaceFUCHSIA<'a>, ) -> Self
Set native field sysmemColorSpaceIndex without native effects.
Sourcepub fn set_sampler_ycbcr_conversion_components(
self,
value: ComponentMapping,
) -> Self
pub fn set_sampler_ycbcr_conversion_components( self, value: ComponentMapping, ) -> Self
Set native field samplerYcbcrConversionComponents without native effects.
Sourcepub fn set_suggested_ycbcr_model(
self,
value: SamplerYcbcrModelConversion,
) -> Self
pub fn set_suggested_ycbcr_model( self, value: SamplerYcbcrModelConversion, ) -> Self
Set native field suggestedYcbcrModel without native effects.
Sourcepub fn set_suggested_ycbcr_range(self, value: SamplerYcbcrRange) -> Self
pub fn set_suggested_ycbcr_range(self, value: SamplerYcbcrRange) -> Self
Set native field suggestedYcbcrRange without native effects.
Sourcepub fn set_suggested_x_chroma_offset(self, value: ChromaLocation) -> Self
pub fn set_suggested_x_chroma_offset(self, value: ChromaLocation) -> Self
Set native field suggestedXChromaOffset without native effects.
Sourcepub fn set_suggested_y_chroma_offset(self, value: ChromaLocation) -> Self
pub fn set_suggested_y_chroma_offset(self, value: ChromaLocation) -> Self
Set native field suggestedYChromaOffset 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.