Realm

vk · Structs · A4

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

StRustExperimental

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, }
Native structure VkAllocationCallbacks.

Contract

Native structure VkAllocationCallbacks.

Khronos reference: VkAllocationCallbacks

Fields

p_user_data

Field
p_user_data: *mut c_void

Native field pUserData.

pfn_allocation

Field
pfn_allocation: PFN_vkAllocationFunction

Native field pfnAllocation.

pfn_reallocation

Field
pfn_reallocation: PFN_vkReallocationFunction

Native field pfnReallocation.

pfn_free

Field
pfn_free: PFN_vkFreeFunction

Native field pfnFree.

pfn_internal_allocation

Field
pfn_internal_allocation: PFN_vkInternalAllocationNotification

Native field pfnInternalAllocation.

pfn_internal_free

Field
pfn_internal_free: PFN_vkInternalFreeNotification

Native field pfnInternalFree.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_user_data

Method
pub unsafe fn set_user_data(self, value: *mut c_void) -> Self

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

Method
pub fn set_pfn_allocation(self, value: PFN_vkAllocationFunction) -> Self

Set native field pfnAllocation without native effects.

set_pfn_reallocation

Method
pub fn set_pfn_reallocation(self, value: PFN_vkReallocationFunction) -> Self

Set native field pfnReallocation without native effects.

set_pfn_free

Method
pub fn set_pfn_free(self, value: PFN_vkFreeFunction) -> Self

Set native field pfnFree without native effects.

set_pfn_internal_allocation

Method
pub fn set_pfn_internal_allocation( self, value: PFN_vkInternalAllocationNotification, ) -> Self

Set native field pfnInternalAllocation without native effects.

set_pfn_internal_free

Method
pub fn set_pfn_internal_free( self, value: PFN_vkInternalFreeNotification, ) -> Self

Set native field pfnInternalFree without native effects.

Stvk::AmigoProfilingSubmitInfoSEC

pub struct AmigoProfilingSubmitInfoSEC<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub first_draw_timestamp: u64, pub swap_buffer_timestamp: u64, /* private fields */ }
Native structure VkAmigoProfilingSubmitInfoSEC.

Contract

Native structure VkAmigoProfilingSubmitInfoSEC.

Khronos reference: VkAmigoProfilingSubmitInfoSEC

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

first_draw_timestamp

Field
first_draw_timestamp: u64

Native field firstDrawTimestamp.

swap_buffer_timestamp

Field
swap_buffer_timestamp: u64

Native field swapBufferTimestamp.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_first_draw_timestamp

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

Set native field firstDrawTimestamp without native effects.

set_swap_buffer_timestamp

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

Set native field swapBufferTimestamp 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::ANativeWindow

Contract

Native type ANativeWindow.

Khronos registry source: 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 */ }
Native structure VkAndroidHardwareBufferFormatProperties2ANDROID.

Contract

Native structure VkAndroidHardwareBufferFormatProperties2ANDROID.

Khronos reference: VkAndroidHardwareBufferFormatProperties2ANDROID

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: FormatFeatureFlags2

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: FormatFeatureFlags2) -> 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::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 */ }
Native structure VkAndroidHardwareBufferFormatPropertiesANDROID.

Contract

Native structure VkAndroidHardwareBufferFormatPropertiesANDROID.

Khronos reference: VkAndroidHardwareBufferFormatPropertiesANDROID

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::AndroidHardwareBufferFormatResolvePropertiesANDROID

pub struct AndroidHardwareBufferFormatResolvePropertiesANDROID<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub color_attachment_format: Format, /* private fields */ }
Native structure VkAndroidHardwareBufferFormatResolvePropertiesANDROID.

Contract

Native structure VkAndroidHardwareBufferFormatResolvePropertiesANDROID.

Khronos reference: VkAndroidHardwareBufferFormatResolvePropertiesANDROID

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

color_attachment_format

Field
color_attachment_format: Format

Native field colorAttachmentFormat.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_color_attachment_format

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

Set native field colorAttachmentFormat 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::AndroidHardwareBufferPropertiesANDROID

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

Contract

Native structure VkAndroidHardwareBufferPropertiesANDROID.

Khronos reference: VkAndroidHardwareBufferPropertiesANDROID

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::AndroidHardwareBufferUsageANDROID

pub struct AndroidHardwareBufferUsageANDROID<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub android_hardware_buffer_usage: u64, /* private fields */ }
Native structure VkAndroidHardwareBufferUsageANDROID.

Contract

Native structure VkAndroidHardwareBufferUsageANDROID.

Khronos reference: VkAndroidHardwareBufferUsageANDROID

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

android_hardware_buffer_usage

Field
android_hardware_buffer_usage: u64

Native field androidHardwareBufferUsage.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_android_hardware_buffer_usage

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

Set native field androidHardwareBufferUsage 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::AndroidSurfaceCreateFlagsKHR

Contract

Open integer representation of VkAndroidSurfaceCreateFlagsKHR.

Khronos reference: VkAndroidSurfaceCreateFlagsKHR

Fields

0

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

Methods and associated items

from_raw

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

as_raw

Method
pub const fn as_raw(self) -> u32
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.

Output

Method
type Output = AndroidSurfaceCreateFlagsKHR
The resulting type after applying the & operator.

Output-1

Method
type Output = AndroidSurfaceCreateFlagsKHR
The resulting type after applying the | operator.

Output-2

Method
type Output = AndroidSurfaceCreateFlagsKHR
The resulting type after applying the ^ operator.

clone

Method
fn clone(&self) -> AndroidSurfaceCreateFlagsKHR
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() -> AndroidSurfaceCreateFlagsKHR
Returns the “default value” for a type. Read more

Output-3

Method
type Output = AndroidSurfaceCreateFlagsKHR
The resulting type after applying the ! operator.

eq

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

Stvk::AndroidSurfaceCreateInfoKHR

pub struct AndroidSurfaceCreateInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: AndroidSurfaceCreateFlagsKHR, pub window: *mut ANativeWindow, /* private fields */ }
Native structure VkAndroidSurfaceCreateInfoKHR.

Contract

Native structure VkAndroidSurfaceCreateInfoKHR.

Khronos reference: VkAndroidSurfaceCreateInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: AndroidSurfaceCreateFlagsKHR

Native field flags.

window

Field
window: *mut ANativeWindow

Native field window.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_flags

Method
pub fn set_flags(self, value: AndroidSurfaceCreateFlagsKHR) -> Self

Set native field flags without native effects.

set_window

Method
pub unsafe fn set_window(self, value: *mut ANativeWindow) -> Self

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

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::AntiLagDataAMD

pub struct AntiLagDataAMD<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub mode: AntiLagModeAMD, pub max_fps: u32, pub p_presentation_info: *const AntiLagPresentationInfoAMD<'a>, /* private fields */ }
Native structure VkAntiLagDataAMD.

Contract

Native structure VkAntiLagDataAMD.

Khronos reference: VkAntiLagDataAMD

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

mode

Field
mode: AntiLagModeAMD

Native field mode.

max_fps

Field
max_fps: u32

Native field maxFPS.

p_presentation_info

Field
p_presentation_info: *const AntiLagPresentationInfoAMD<'a>

Native field pPresentationInfo.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_mode

Method
pub fn set_mode(self, value: AntiLagModeAMD) -> Self

Set native field mode without native effects.

set_max_fps

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

Set native field maxFPS without native effects.

set_presentation_info

Method
pub fn set_presentation_info( self, value: &'a AntiLagPresentationInfoAMD<'a>, ) -> Self

Set native field pPresentationInfo 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::AntiLagModeAMD

Contract

Open integer representation of VkAntiLagModeAMD.

Khronos reference: VkAntiLagModeAMD

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.

fmt

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

default

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

eq

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

Stvk::AntiLagPresentationInfoAMD

pub struct AntiLagPresentationInfoAMD<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub stage: AntiLagStageAMD, pub frame_index: u64, /* private fields */ }
Native structure VkAntiLagPresentationInfoAMD.

Contract

Native structure VkAntiLagPresentationInfoAMD.

Khronos reference: VkAntiLagPresentationInfoAMD

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

stage

Field
stage: AntiLagStageAMD

Native field stage.

frame_index

Field
frame_index: u64

Native field frameIndex.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_stage

Method
pub fn set_stage(self, value: AntiLagStageAMD) -> Self

Set native field stage without native effects.

set_frame_index

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

Set native field frameIndex 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::AntiLagStageAMD

Contract

Open integer representation of VkAntiLagStageAMD.

Khronos reference: VkAntiLagStageAMD

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.

fmt

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

default

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

eq

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

Stvk::ApplicationInfo

pub struct ApplicationInfo<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub p_application_name: *const c_char, pub application_version: u32, pub p_engine_name: *const c_char, pub engine_version: u32, pub api_version: u32, /* private fields */ }
Native structure VkApplicationInfo.

Contract

Native structure VkApplicationInfo.

Khronos reference: VkApplicationInfo

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

p_application_name

Field
p_application_name: *const c_char

Native field pApplicationName.

application_version

Field
application_version: u32

Native field applicationVersion.

p_engine_name

Field
p_engine_name: *const c_char

Native field pEngineName.

engine_version

Field
engine_version: u32

Native field engineVersion.

api_version

Field
api_version: u32

Native field apiVersion.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_application_name

Method
pub fn set_application_name(self, value: &'a CStr) -> Self

Set native field pApplicationName without native effects.

set_application_version

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

Set native field applicationVersion without native effects.

set_engine_name

Method
pub fn set_engine_name(self, value: &'a CStr) -> Self

Set native field pEngineName without native effects.

set_engine_version

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

Set native field engineVersion without native effects.

set_api_version

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

Set native field apiVersion 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::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, }
Native structure VkAttachmentDescription.

Contract

Native structure VkAttachmentDescription.

Khronos reference: VkAttachmentDescription

Fields

flags

Field
flags: AttachmentDescriptionFlags

Native field flags.

format

Field
format: Format

Native field format.

samples

Field
samples: SampleCountFlagBits

Native field samples.

load_op

Field
load_op: AttachmentLoadOp

Native field loadOp.

store_op

Field
store_op: AttachmentStoreOp

Native field storeOp.

stencil_load_op

Field
stencil_load_op: AttachmentLoadOp

Native field stencilLoadOp.

stencil_store_op

Field
stencil_store_op: AttachmentStoreOp

Native field stencilStoreOp.

initial_layout

Field
initial_layout: ImageLayout

Native field initialLayout.

final_layout

Field
final_layout: ImageLayout

Native field finalLayout.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_flags

Method
pub fn set_flags(self, value: AttachmentDescriptionFlags) -> Self

Set native field flags without native effects.

set_format

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

Set native field format without native effects.

set_samples

Method
pub fn set_samples(self, value: SampleCountFlagBits) -> Self

Set native field samples without native effects.

set_load_op

Method
pub fn set_load_op(self, value: AttachmentLoadOp) -> Self

Set native field loadOp without native effects.

set_store_op

Method
pub fn set_store_op(self, value: AttachmentStoreOp) -> Self

Set native field storeOp without native effects.

set_stencil_load_op

Method
pub fn set_stencil_load_op(self, value: AttachmentLoadOp) -> Self

Set native field stencilLoadOp without native effects.

set_stencil_store_op

Method
pub fn set_stencil_store_op(self, value: AttachmentStoreOp) -> Self

Set native field stencilStoreOp without native effects.

set_initial_layout

Method
pub fn set_initial_layout(self, value: ImageLayout) -> Self

Set native field initialLayout without native effects.

set_final_layout

Method
pub fn set_final_layout(self, value: ImageLayout) -> Self

Set native field finalLayout without native effects.

clone

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