vk · Structs · N1
4 public declarations with native signatures and source-owned contracts.
Stvk::NativeBufferFormatPropertiesOHOS
pub struct NativeBufferFormatPropertiesOHOS<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub format: Format,
pub external_format: u64,
pub format_features: FormatFeatureFlags,
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 */
}Contract
Native structure VkNativeBufferFormatPropertiesOHOS.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
format
format: FormatNative field format.
external_format
external_format: u64Native field externalFormat.
format_features
format_features: FormatFeatureFlagsNative field formatFeatures.
sampler_ycbcr_conversion_components
sampler_ycbcr_conversion_components: ComponentMappingNative field samplerYcbcrConversionComponents.
suggested_ycbcr_model
suggested_ycbcr_model: SamplerYcbcrModelConversionNative field suggestedYcbcrModel.
suggested_ycbcr_range
suggested_ycbcr_range: SamplerYcbcrRangeNative field suggestedYcbcrRange.
suggested_x_chroma_offset
suggested_x_chroma_offset: ChromaLocationNative field suggestedXChromaOffset.
suggested_y_chroma_offset
suggested_y_chroma_offset: ChromaLocationNative field suggestedYChromaOffset.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_format
Set native field format without native effects.
set_external_format
Set native field externalFormat without native effects.
set_format_features
Set native field formatFeatures without native effects.
set_sampler_ycbcr_conversion_components
Set native field samplerYcbcrConversionComponents without native effects.
set_suggested_ycbcr_model
Set native field suggestedYcbcrModel without native effects.
set_suggested_ycbcr_range
Set native field suggestedYcbcrRange without native effects.
set_suggested_x_chroma_offset
Set native field suggestedXChromaOffset without native effects.
set_suggested_y_chroma_offset
Set native field suggestedYChromaOffset without native effects.
push_next
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.
default
Stvk::NativeBufferPropertiesOHOS
Contract
Native structure VkNativeBufferPropertiesOHOS.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
allocation_size
allocation_size: DeviceSizeNative field allocationSize.
memory_type_bits
memory_type_bits: u32Native field memoryTypeBits.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_allocation_size
Set native field allocationSize without native effects.
set_memory_type_bits
Set native field memoryTypeBits without native effects.
push_next
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.
default
Stvk::NativeBufferUsageOHOS
Contract
Native structure VkNativeBufferUsageOHOS.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
ohos_native_buffer_usage
ohos_native_buffer_usage: u64Native field OHOSNativeBufferUsage.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_ohos_native_buffer_usage
Set native field OHOSNativeBufferUsage without native effects.
push_next
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.
default
Stvk::NeuralAcceleratorStatisticsModeARM
Contract
Open integer representation of VkNeuralAcceleratorStatisticsModeARM.
Fields
0
0: i32Methods and associated items
DISABLED_ARM
Native value VK_NEURAL_ACCELERATOR_STATISTICS_MODE_DISABLED_ARM.
Khronos reference: VK_NEURAL_ACCELERATOR_STATISTICS_MODE_DISABLED_ARM
STATISTICS0_ARM
Native value VK_NEURAL_ACCELERATOR_STATISTICS_MODE_STATISTICS0_ARM.
Khronos reference: VK_NEURAL_ACCELERATOR_STATISTICS_MODE_STATISTICS0_ARM
STATISTICS1_ARM
Native value VK_NEURAL_ACCELERATOR_STATISTICS_MODE_STATISTICS1_ARM.
Khronos reference: VK_NEURAL_ACCELERATOR_STATISTICS_MODE_STATISTICS1_ARM
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.