vk · Structs · A4
16 public declarations with native signatures and source-owned contracts.
Stvk::AllocationCallbacks
#[repr(C)]pub struct AllocationCallbacks {
pub p_user_data: *mut c_void,
pub pfn_allocation: PFN_vkAllocationFunction,
pub pfn_reallocation: PFN_vkReallocationFunction,
pub pfn_free: PFN_vkFreeFunction,
pub pfn_internal_allocation: PFN_vkInternalAllocationNotification,
pub pfn_internal_free: PFN_vkInternalFreeNotification,
}Contract
Native structure VkAllocationCallbacks.
Fields
p_user_data
p_user_data: *mut c_voidNative field pUserData.
pfn_allocation
pfn_allocation: PFN_vkAllocationFunctionNative field pfnAllocation.
pfn_reallocation
pfn_reallocation: PFN_vkReallocationFunctionNative field pfnReallocation.
pfn_free
pfn_free: PFN_vkFreeFunctionNative field pfnFree.
pfn_internal_allocation
pfn_internal_allocation: PFN_vkInternalAllocationNotificationNative field pfnInternalAllocation.
pfn_internal_free
pfn_internal_free: PFN_vkInternalFreeNotificationNative field pfnInternalFree.
Methods and associated items
new
Construct the record with its default native state.
set_user_data
Set native pointer pUserData 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_pfn_allocation
Set native field pfnAllocation without native effects.
set_pfn_reallocation
Set native field pfnReallocation without native effects.
set_pfn_free
Set native field pfnFree without native effects.
set_pfn_internal_allocation
Set native field pfnInternalAllocation without native effects.
set_pfn_internal_free
Set native field pfnInternalFree without native effects.
clone
default
Stvk::AmigoProfilingSubmitInfoSEC
Contract
Native structure VkAmigoProfilingSubmitInfoSEC.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
first_draw_timestamp
first_draw_timestamp: u64Native field firstDrawTimestamp.
swap_buffer_timestamp
swap_buffer_timestamp: u64Native field swapBufferTimestamp.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_first_draw_timestamp
Set native field firstDrawTimestamp without native effects.
set_swap_buffer_timestamp
Set native field swapBufferTimestamp 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::ANativeWindow
Contract
Native type ANativeWindow.
Stvk::AndroidHardwareBufferFormatProperties2ANDROID
pub struct AndroidHardwareBufferFormatProperties2ANDROID<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub format: Format,
pub external_format: u64,
pub format_features: FormatFeatureFlags2,
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 VkAndroidHardwareBufferFormatProperties2ANDROID.
Khronos reference: VkAndroidHardwareBufferFormatProperties2ANDROID
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: FormatFeatureFlags2Native 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::AndroidHardwareBufferFormatPropertiesANDROID
pub struct AndroidHardwareBufferFormatPropertiesANDROID<'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 VkAndroidHardwareBufferFormatPropertiesANDROID.
Khronos reference: VkAndroidHardwareBufferFormatPropertiesANDROID
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::AndroidHardwareBufferFormatResolvePropertiesANDROID
Contract
Native structure VkAndroidHardwareBufferFormatResolvePropertiesANDROID.
Khronos reference: VkAndroidHardwareBufferFormatResolvePropertiesANDROID
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
color_attachment_format
color_attachment_format: FormatNative field colorAttachmentFormat.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_color_attachment_format
Set native field colorAttachmentFormat 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::AndroidHardwareBufferPropertiesANDROID
Contract
Native structure VkAndroidHardwareBufferPropertiesANDROID.
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::AndroidHardwareBufferUsageANDROID
Contract
Native structure VkAndroidHardwareBufferUsageANDROID.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
android_hardware_buffer_usage
android_hardware_buffer_usage: u64Native field androidHardwareBufferUsage.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_android_hardware_buffer_usage
Set native field androidHardwareBufferUsage 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::AndroidSurfaceCreateFlagsKHR
Contract
Open integer representation of VkAndroidSurfaceCreateFlagsKHR.
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::AndroidSurfaceCreateInfoKHR
Contract
Native structure VkAndroidSurfaceCreateInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: AndroidSurfaceCreateFlagsKHRNative field flags.
window
window: *mut ANativeWindowNative 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_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::AntiLagDataAMD
Contract
Native structure VkAntiLagDataAMD.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
mode
mode: AntiLagModeAMDNative field mode.
max_fps
max_fps: u32Native field maxFPS.
p_presentation_info
p_presentation_info: *const AntiLagPresentationInfoAMD<'a>Native field pPresentationInfo.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_mode
Set native field mode without native effects.
set_max_fps
Set native field maxFPS without native effects.
set_presentation_info
Set native field pPresentationInfo 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::AntiLagModeAMD
Contract
Open integer representation of VkAntiLagModeAMD.
Fields
0
0: i32Methods and associated items
DRIVER_CONTROL_AMD
Native value VK_ANTI_LAG_MODE_DRIVER_CONTROL_AMD.
ON_AMD
Native value VK_ANTI_LAG_MODE_ON_AMD.
OFF_AMD
Native value VK_ANTI_LAG_MODE_OFF_AMD.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::AntiLagPresentationInfoAMD
Contract
Native structure VkAntiLagPresentationInfoAMD.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
stage
stage: AntiLagStageAMDNative field stage.
frame_index
frame_index: u64Native field frameIndex.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_stage
Set native field stage without native effects.
set_frame_index
Set native field frameIndex 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::AntiLagStageAMD
Contract
Open integer representation of VkAntiLagStageAMD.
Fields
0
0: i32Methods and associated items
INPUT_AMD
Native value VK_ANTI_LAG_STAGE_INPUT_AMD.
PRESENT_AMD
Native value VK_ANTI_LAG_STAGE_PRESENT_AMD.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::ApplicationInfo
Contract
Native structure VkApplicationInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
p_application_name
p_application_name: *const c_charNative field pApplicationName.
application_version
application_version: u32Native field applicationVersion.
p_engine_name
p_engine_name: *const c_charNative field pEngineName.
engine_version
engine_version: u32Native field engineVersion.
api_version
api_version: u32Native field apiVersion.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_application_name
Set native field pApplicationName without native effects.
set_application_version
Set native field applicationVersion without native effects.
set_engine_name
Set native field pEngineName without native effects.
set_engine_version
Set native field engineVersion without native effects.
set_api_version
Set native field apiVersion 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::AttachmentDescription
#[repr(C)]pub struct AttachmentDescription {
pub flags: AttachmentDescriptionFlags,
pub format: Format,
pub samples: SampleCountFlagBits,
pub load_op: AttachmentLoadOp,
pub store_op: AttachmentStoreOp,
pub stencil_load_op: AttachmentLoadOp,
pub stencil_store_op: AttachmentStoreOp,
pub initial_layout: ImageLayout,
pub final_layout: ImageLayout,
}Contract
Native structure VkAttachmentDescription.
Fields
flags
flags: AttachmentDescriptionFlagsNative field flags.
format
format: FormatNative field format.
samples
samples: SampleCountFlagBitsNative field samples.
load_op
load_op: AttachmentLoadOpNative field loadOp.
store_op
store_op: AttachmentStoreOpNative field storeOp.
stencil_load_op
stencil_load_op: AttachmentLoadOpNative field stencilLoadOp.
stencil_store_op
stencil_store_op: AttachmentStoreOpNative field stencilStoreOp.
initial_layout
initial_layout: ImageLayoutNative field initialLayout.
final_layout
final_layout: ImageLayoutNative field finalLayout.
Methods and associated items
new
Construct the record with its default native state.
set_flags
Set native field flags without native effects.
set_format
Set native field format without native effects.
set_samples
Set native field samples without native effects.
set_load_op
Set native field loadOp without native effects.
set_store_op
Set native field storeOp without native effects.
set_stencil_load_op
Set native field stencilLoadOp without native effects.
set_stencil_store_op
Set native field stencilStoreOp without native effects.
set_initial_layout
Set native field initialLayout without native effects.
set_final_layout
Set native field finalLayout without native effects.