vk · Structs · S2
16 public declarations with native signatures and source-owned contracts.
Stvk::SamplerYcbcrConversion
Contract
Raw Vulkan handle VkSamplerYcbcrConversion.
Khronos reference: VkSamplerYcbcrConversion
Calls using this identity must satisfy Vulkan lifetime and synchronization rules.
Fields
0
0: u64Methods and associated items
NULL
is_null
from_raw
as_raw
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::SamplerYcbcrConversionCreateInfo
pub struct SamplerYcbcrConversionCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub format: Format,
pub ycbcr_model: SamplerYcbcrModelConversion,
pub ycbcr_range: SamplerYcbcrRange,
pub components: ComponentMapping,
pub x_chroma_offset: ChromaLocation,
pub y_chroma_offset: ChromaLocation,
pub chroma_filter: Filter,
pub force_explicit_reconstruction: Bool32,
/* private fields */
}Contract
Native structure VkSamplerYcbcrConversionCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
format
format: FormatNative field format.
ycbcr_model
ycbcr_model: SamplerYcbcrModelConversionNative field ycbcrModel.
ycbcr_range
ycbcr_range: SamplerYcbcrRangeNative field ycbcrRange.
components
components: ComponentMappingNative field components.
x_chroma_offset
x_chroma_offset: ChromaLocationNative field xChromaOffset.
y_chroma_offset
y_chroma_offset: ChromaLocationNative field yChromaOffset.
chroma_filter
chroma_filter: FilterNative field chromaFilter.
force_explicit_reconstruction
force_explicit_reconstruction: Bool32Native field forceExplicitReconstruction.
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_ycbcr_model
Set native field ycbcrModel without native effects.
set_ycbcr_range
Set native field ycbcrRange without native effects.
set_components
Set native field components without native effects.
set_x_chroma_offset
Set native field xChromaOffset without native effects.
set_y_chroma_offset
Set native field yChromaOffset without native effects.
set_chroma_filter
Set native field chromaFilter without native effects.
set_force_explicit_reconstruction
Set native field forceExplicitReconstruction 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::SamplerYcbcrConversionImageFormatProperties
Contract
Native structure VkSamplerYcbcrConversionImageFormatProperties.
Khronos reference: VkSamplerYcbcrConversionImageFormatProperties
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
combined_image_sampler_descriptor_count
combined_image_sampler_descriptor_count: u32Native field combinedImageSamplerDescriptorCount.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_combined_image_sampler_descriptor_count
Set native field combinedImageSamplerDescriptorCount 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::SamplerYcbcrConversionInfo
Contract
Native structure VkSamplerYcbcrConversionInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
conversion
conversion: SamplerYcbcrConversionNative field conversion.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_conversion
Set native field conversion 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::SamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM
Contract
Native structure VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM.
Khronos reference: VkSamplerYcbcrConversionYcbcrDegammaCreateInfoQCOM
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
enable_y_degamma
enable_y_degamma: Bool32Native field enableYDegamma.
enable_cb_cr_degamma
enable_cb_cr_degamma: Bool32Native field enableCbCrDegamma.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_enable_y_degamma
Set native field enableYDegamma without native effects.
set_enable_cb_cr_degamma
Set native field enableCbCrDegamma 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::SamplerYcbcrModelConversion
Contract
Open integer representation of VkSamplerYcbcrModelConversion.
Fields
0
0: i32Methods and associated items
RGB_IDENTITY
Native value VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY.
Khronos reference: VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY
YCBCR_IDENTITY
Native value VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY.
Khronos reference: VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY
YCBCR_709
Native value VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709.
Khronos reference: VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709
YCBCR_601
Native value VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601.
Khronos reference: VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601
YCBCR_2020
Native value VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020.
Khronos reference: VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020
RGB_IDENTITY_KHR
Native value VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY_KHR.
Khronos reference: VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY_KHR
YCBCR_IDENTITY_KHR
Native value VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY_KHR.
Khronos reference: VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY_KHR
YCBCR_709_KHR
Native value VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709_KHR.
Khronos reference: VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709_KHR
YCBCR_601_KHR
Native value VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601_KHR.
Khronos reference: VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601_KHR
YCBCR_2020_KHR
Native value VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020_KHR.
Khronos reference: VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020_KHR
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::SamplerYcbcrRange
Contract
Open integer representation of VkSamplerYcbcrRange.
Fields
0
0: i32Methods and associated items
ITU_FULL
Native value VK_SAMPLER_YCBCR_RANGE_ITU_FULL.
ITU_NARROW
Native value VK_SAMPLER_YCBCR_RANGE_ITU_NARROW.
ITU_FULL_KHR
Native value VK_SAMPLER_YCBCR_RANGE_ITU_FULL_KHR.
ITU_NARROW_KHR
Native value VK_SAMPLER_YCBCR_RANGE_ITU_NARROW_KHR.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ScopeKHR
Contract
Open integer representation of VkScopeKHR.
Fields
0
0: i32Methods and associated items
DEVICE_KHR
Native value VK_SCOPE_DEVICE_KHR.
WORKGROUP_KHR
Native value VK_SCOPE_WORKGROUP_KHR.
SUBGROUP_KHR
Native value VK_SCOPE_SUBGROUP_KHR.
QUEUE_FAMILY_KHR
Native value VK_SCOPE_QUEUE_FAMILY_KHR.
DEVICE_NV
Native value VK_SCOPE_DEVICE_NV.
WORKGROUP_NV
Native value VK_SCOPE_WORKGROUP_NV.
SUBGROUP_NV
Native value VK_SCOPE_SUBGROUP_NV.
QUEUE_FAMILY_NV
Native value VK_SCOPE_QUEUE_FAMILY_NV.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ScreenBufferFormatPropertiesQNX
pub struct ScreenBufferFormatPropertiesQNX<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub format: Format,
pub external_format: u64,
pub screen_usage: 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 VkScreenBufferFormatPropertiesQNX.
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.
screen_usage
screen_usage: u64Native field screenUsage.
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_screen_usage
Set native field screenUsage 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::ScreenBufferPropertiesQNX
Contract
Native structure VkScreenBufferPropertiesQNX.
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::ScreenSurfaceCreateFlagsQNX
Contract
Open integer representation of VkScreenSurfaceCreateFlagsQNX.
Fields
0
0: u32Methods and associated items
from_raw
as_raw
empty
Output
& operator.bitand
& operation. Read moreOutput-1
| operator.bitor
| operation. Read moreOutput-2
^ operator.bitxor
^ operation. Read moreclone
fmt
default
hash
Output-3
! operator.not
! operation. Read moreeq
self and other values to be equal, and is used by ==.Stvk::ScreenSurfaceCreateInfoQNX
Contract
Native structure VkScreenSurfaceCreateInfoQNX.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: ScreenSurfaceCreateFlagsQNXNative field flags.
context
context: *mut _screen_contextNative field context.
window
window: *mut _screen_windowNative field window.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_flags
Set native field flags without native effects.
set_context
Set native pointer context explicitly. No borrow or extent is inferred.
Safety
The caller must establish pointee validity, extent, alignment, aliasing and the full native retention lifetime before using this record in a native call. Callback, external-object and nested-pointer contracts remain caller obligations.
set_window
Set native pointer window explicitly. No borrow or extent is inferred.
Safety
The caller must establish pointee validity, extent, alignment, aliasing and the full native retention lifetime before using this record in a native call. Callback, external-object and nested-pointer contracts remain caller obligations.
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::SECURITY_ATTRIBUTES
Contract
Native type SECURITY_ATTRIBUTES.
Stvk::Semaphore
Contract
Raw Vulkan handle VkSemaphore.
Khronos reference: VkSemaphore
Calls using this identity must satisfy Vulkan lifetime and synchronization rules.
Fields
0
0: u64Methods and associated items
NULL
is_null
from_raw
as_raw
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::SemaphoreCreateFlags
Contract
Open integer representation of VkSemaphoreCreateFlags.
Fields
0
0: u32Methods and associated items
from_raw
as_raw
empty
Output
& operator.bitand
& operation. Read moreOutput-1
| operator.bitor
| operation. Read moreOutput-2
^ operator.bitxor
^ operation. Read moreclone
fmt
default
hash
Output-3
! operator.not
! operation. Read moreeq
self and other values to be equal, and is used by ==.Stvk::SemaphoreCreateInfo
Contract
Native structure VkSemaphoreCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: SemaphoreCreateFlagsNative field flags.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_flags
Set native field flags 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.