Realm

vk · Structs · N1

4 public declarations with native signatures and source-owned contracts.

StRustExperimental

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 */ }
Native structure VkNativeBufferFormatPropertiesOHOS.

Contract

Native structure VkNativeBufferFormatPropertiesOHOS.

Khronos reference: VkNativeBufferFormatPropertiesOHOS

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

format

Field
format: Format

Native field format.

external_format

Field
external_format: u64

Native field externalFormat.

format_features

Field
format_features: FormatFeatureFlags

Native field formatFeatures.

sampler_ycbcr_conversion_components

Field
sampler_ycbcr_conversion_components: ComponentMapping

Native field samplerYcbcrConversionComponents.

suggested_ycbcr_model

Field
suggested_ycbcr_model: SamplerYcbcrModelConversion

Native field suggestedYcbcrModel.

suggested_ycbcr_range

Field
suggested_ycbcr_range: SamplerYcbcrRange

Native field suggestedYcbcrRange.

suggested_x_chroma_offset

Field
suggested_x_chroma_offset: ChromaLocation

Native field suggestedXChromaOffset.

suggested_y_chroma_offset

Field
suggested_y_chroma_offset: ChromaLocation

Native field suggestedYChromaOffset.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_format

Method
pub fn set_format(self, value: Format) -> Self

Set native field format without native effects.

set_external_format

Method
pub fn set_external_format(self, value: u64) -> Self

Set native field externalFormat without native effects.

set_format_features

Method
pub fn set_format_features(self, value: FormatFeatureFlags) -> Self

Set native field formatFeatures without native effects.

set_sampler_ycbcr_conversion_components

Method
pub fn set_sampler_ycbcr_conversion_components( self, value: ComponentMapping, ) -> Self

Set native field samplerYcbcrConversionComponents without native effects.

set_suggested_ycbcr_model

Method
pub fn set_suggested_ycbcr_model( self, value: SamplerYcbcrModelConversion, ) -> Self

Set native field suggestedYcbcrModel without native effects.

set_suggested_ycbcr_range

Method
pub fn set_suggested_ycbcr_range(self, value: SamplerYcbcrRange) -> Self

Set native field suggestedYcbcrRange without native effects.

set_suggested_x_chroma_offset

Method
pub fn set_suggested_x_chroma_offset(self, value: ChromaLocation) -> Self

Set native field suggestedXChromaOffset without native effects.

set_suggested_y_chroma_offset

Method
pub fn set_suggested_y_chroma_offset(self, value: ChromaLocation) -> Self

Set native field suggestedYChromaOffset without native effects.

push_next

Method
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.

Stvk::NativeBufferPropertiesOHOS

pub struct NativeBufferPropertiesOHOS<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub allocation_size: DeviceSize, pub memory_type_bits: u32, /* private fields */ }
Native structure VkNativeBufferPropertiesOHOS.

Contract

Native structure VkNativeBufferPropertiesOHOS.

Khronos reference: VkNativeBufferPropertiesOHOS

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

allocation_size

Field
allocation_size: DeviceSize

Native field allocationSize.

memory_type_bits

Field
memory_type_bits: u32

Native field memoryTypeBits.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_allocation_size

Method
pub fn set_allocation_size(self, value: DeviceSize) -> Self

Set native field allocationSize without native effects.

set_memory_type_bits

Method
pub fn set_memory_type_bits(self, value: u32) -> Self

Set native field memoryTypeBits without native effects.

push_next

Method
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.

Stvk::NativeBufferUsageOHOS

pub struct NativeBufferUsageOHOS<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub ohos_native_buffer_usage: u64, /* private fields */ }
Native structure VkNativeBufferUsageOHOS.

Contract

Native structure VkNativeBufferUsageOHOS.

Khronos reference: VkNativeBufferUsageOHOS

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

ohos_native_buffer_usage

Field
ohos_native_buffer_usage: u64

Native field OHOSNativeBufferUsage.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_ohos_native_buffer_usage

Method
pub fn set_ohos_native_buffer_usage(self, value: u64) -> Self

Set native field OHOSNativeBufferUsage without native effects.

push_next

Method
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.

Stvk::NeuralAcceleratorStatisticsModeARM

Contract

Open integer representation of VkNeuralAcceleratorStatisticsModeARM.

Khronos reference: VkNeuralAcceleratorStatisticsModeARM

Fields

0

Field
0: i32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: i32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> i32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

clone

Method
fn clone(&self) -> NeuralAcceleratorStatisticsModeARM
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> NeuralAcceleratorStatisticsModeARM
Returns the “default value” for a type. Read more

eq

Method
fn eq(&self, other: &NeuralAcceleratorStatisticsModeARM) -> bool
Tests for self and other values to be equal, and is used by ==.