Realm

vk · Structs · R1

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

StRustExperimental

Stvk::RasterizationOrderAMD

Contract

Open integer representation of VkRasterizationOrderAMD.

Khronos reference: VkRasterizationOrderAMD

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) -> RasterizationOrderAMD
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() -> RasterizationOrderAMD
Returns the “default value” for a type. Read more

eq

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

Stvk::RayTracingInvocationReorderModeEXT

Contract

Open integer representation of VkRayTracingInvocationReorderModeEXT.

Khronos reference: VkRayTracingInvocationReorderModeEXT

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) -> RayTracingInvocationReorderModeEXT
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() -> RayTracingInvocationReorderModeEXT
Returns the “default value” for a type. Read more

eq

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

Stvk::RayTracingLssIndexingModeNV

Contract

Open integer representation of VkRayTracingLssIndexingModeNV.

Khronos reference: VkRayTracingLssIndexingModeNV

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) -> RayTracingLssIndexingModeNV
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() -> RayTracingLssIndexingModeNV
Returns the “default value” for a type. Read more

eq

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

Stvk::RayTracingLssPrimitiveEndCapsModeNV

Contract

Open integer representation of VkRayTracingLssPrimitiveEndCapsModeNV.

Khronos reference: VkRayTracingLssPrimitiveEndCapsModeNV

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) -> RayTracingLssPrimitiveEndCapsModeNV
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() -> RayTracingLssPrimitiveEndCapsModeNV
Returns the “default value” for a type. Read more

eq

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

Stvk::RayTracingPipelineClusterAccelerationStructureCreateInfoNV

pub struct RayTracingPipelineClusterAccelerationStructureCreateInfoNV<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub allow_cluster_acceleration_structure: Bool32, /* private fields */ }
Native structure VkRayTracingPipelineClusterAccelerationStructureCreateInfoNV.

Contract

Native structure VkRayTracingPipelineClusterAccelerationStructureCreateInfoNV.

Khronos reference: VkRayTracingPipelineClusterAccelerationStructureCreateInfoNV

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

allow_cluster_acceleration_structure

Field
allow_cluster_acceleration_structure: Bool32

Native field allowClusterAccelerationStructure.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_allow_cluster_acceleration_structure

Method
pub fn set_allow_cluster_acceleration_structure(self, value: Bool32) -> Self

Set native field allowClusterAccelerationStructure 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::RayTracingPipelineCreateInfoKHR

pub struct RayTracingPipelineCreateInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: PipelineCreateFlags, pub stage_count: u32, pub p_stages: *const PipelineShaderStageCreateInfo<'a>, pub group_count: u32, pub p_groups: *const RayTracingShaderGroupCreateInfoKHR<'a>, pub max_pipeline_ray_recursion_depth: u32, pub p_library_info: *const PipelineLibraryCreateInfoKHR<'a>, pub p_library_interface: *const RayTracingPipelineInterfaceCreateInfoKHR<'a>, pub p_dynamic_state: *const PipelineDynamicStateCreateInfo<'a>, pub layout: PipelineLayout, pub base_pipeline_handle: Pipeline, pub base_pipeline_index: i32, /* private fields */ }
Native structure VkRayTracingPipelineCreateInfoKHR.

Contract

Native structure VkRayTracingPipelineCreateInfoKHR.

Khronos reference: VkRayTracingPipelineCreateInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: PipelineCreateFlags

Native field flags.

stage_count

Field
stage_count: u32

Native field stageCount.

p_stages

Field
p_stages: *const PipelineShaderStageCreateInfo<'a>

Native field pStages.

group_count

Field
group_count: u32

Native field groupCount.

p_groups

Field
p_groups: *const RayTracingShaderGroupCreateInfoKHR<'a>

Native field pGroups.

max_pipeline_ray_recursion_depth

Field
max_pipeline_ray_recursion_depth: u32

Native field maxPipelineRayRecursionDepth.

p_library_info

Field
p_library_info: *const PipelineLibraryCreateInfoKHR<'a>

Native field pLibraryInfo.

p_library_interface

Field
p_library_interface: *const RayTracingPipelineInterfaceCreateInfoKHR<'a>

Native field pLibraryInterface.

p_dynamic_state

Field
p_dynamic_state: *const PipelineDynamicStateCreateInfo<'a>

Native field pDynamicState.

layout

Field
layout: PipelineLayout

Native field layout.

base_pipeline_handle

Field
base_pipeline_handle: Pipeline

Native field basePipelineHandle.

base_pipeline_index

Field
base_pipeline_index: i32

Native field basePipelineIndex.

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: PipelineCreateFlags) -> Self

Set native field flags without native effects.

set_stage_count

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

Set native count stageCount directly without checking associated pointer extents. Use the borrowed array helpers to derive matching storage and counts together. Direct count edits support null-query/dynamic-state paths and remain a native-call validity obligation, including after earlier borrowed setters.

set_stages

Method
pub fn set_stages( self, value: &'a [PipelineShaderStageCreateInfo<'a>], ) -> Result<Self, ConstructionError>

Borrow pStages and set checked native count stageCount. The borrow covers this storage only; nested raw pointers, format, alignment and asynchronous retention remain native-call obligations. Output storage must be initialized; returned sizes do not enlarge its capacity.

Errors

Returns a construction error if the length exceeds the native count width.

set_group_count

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

Set native count groupCount directly without checking associated pointer extents. Use the borrowed array helpers to derive matching storage and counts together. Direct count edits support null-query/dynamic-state paths and remain a native-call validity obligation, including after earlier borrowed setters.

set_groups

Method
pub fn set_groups( self, value: &'a [RayTracingShaderGroupCreateInfoKHR<'a>], ) -> Result<Self, ConstructionError>

Borrow pGroups and set checked native count groupCount. The borrow covers this storage only; nested raw pointers, format, alignment and asynchronous retention remain native-call obligations. Output storage must be initialized; returned sizes do not enlarge its capacity.

Errors

Returns a construction error if the length exceeds the native count width.

set_max_pipeline_ray_recursion_depth

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

Set native field maxPipelineRayRecursionDepth without native effects.

set_library_info

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

Set native field pLibraryInfo without native effects.

set_library_interface

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

Set native field pLibraryInterface without native effects.

set_dynamic_state

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

Set native field pDynamicState without native effects.

set_layout

Method
pub fn set_layout(self, value: PipelineLayout) -> Self

Set native field layout without native effects.

set_base_pipeline_handle

Method
pub fn set_base_pipeline_handle(self, value: Pipeline) -> Self

Set native field basePipelineHandle without native effects.

set_base_pipeline_index

Method
pub fn set_base_pipeline_index(self, value: i32) -> Self

Set native field basePipelineIndex 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::RayTracingPipelineCreateInfoNV

pub struct RayTracingPipelineCreateInfoNV<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: PipelineCreateFlags, pub stage_count: u32, pub p_stages: *const PipelineShaderStageCreateInfo<'a>, pub group_count: u32, pub p_groups: *const RayTracingShaderGroupCreateInfoNV<'a>, pub max_recursion_depth: u32, pub layout: PipelineLayout, pub base_pipeline_handle: Pipeline, pub base_pipeline_index: i32, /* private fields */ }
Native structure VkRayTracingPipelineCreateInfoNV.

Contract

Native structure VkRayTracingPipelineCreateInfoNV.

Khronos reference: VkRayTracingPipelineCreateInfoNV

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: PipelineCreateFlags

Native field flags.

stage_count

Field
stage_count: u32

Native field stageCount.

p_stages

Field
p_stages: *const PipelineShaderStageCreateInfo<'a>

Native field pStages.

group_count

Field
group_count: u32

Native field groupCount.

p_groups

Field
p_groups: *const RayTracingShaderGroupCreateInfoNV<'a>

Native field pGroups.

max_recursion_depth

Field
max_recursion_depth: u32

Native field maxRecursionDepth.

layout

Field
layout: PipelineLayout

Native field layout.

base_pipeline_handle

Field
base_pipeline_handle: Pipeline

Native field basePipelineHandle.

base_pipeline_index

Field
base_pipeline_index: i32

Native field basePipelineIndex.

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: PipelineCreateFlags) -> Self

Set native field flags without native effects.

set_stage_count

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

Set native count stageCount directly without checking associated pointer extents. Use the borrowed array helpers to derive matching storage and counts together. Direct count edits support null-query/dynamic-state paths and remain a native-call validity obligation, including after earlier borrowed setters.

set_stages

Method
pub fn set_stages( self, value: &'a [PipelineShaderStageCreateInfo<'a>], ) -> Result<Self, ConstructionError>

Borrow pStages and set checked native count stageCount. The borrow covers this storage only; nested raw pointers, format, alignment and asynchronous retention remain native-call obligations. Output storage must be initialized; returned sizes do not enlarge its capacity.

Errors

Returns a construction error if the length exceeds the native count width.

set_group_count

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

Set native count groupCount directly without checking associated pointer extents. Use the borrowed array helpers to derive matching storage and counts together. Direct count edits support null-query/dynamic-state paths and remain a native-call validity obligation, including after earlier borrowed setters.

set_groups

Method
pub fn set_groups( self, value: &'a [RayTracingShaderGroupCreateInfoNV<'a>], ) -> Result<Self, ConstructionError>

Borrow pGroups and set checked native count groupCount. The borrow covers this storage only; nested raw pointers, format, alignment and asynchronous retention remain native-call obligations. Output storage must be initialized; returned sizes do not enlarge its capacity.

Errors

Returns a construction error if the length exceeds the native count width.

set_max_recursion_depth

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

Set native field maxRecursionDepth without native effects.

set_layout

Method
pub fn set_layout(self, value: PipelineLayout) -> Self

Set native field layout without native effects.

set_base_pipeline_handle

Method
pub fn set_base_pipeline_handle(self, value: Pipeline) -> Self

Set native field basePipelineHandle without native effects.

set_base_pipeline_index

Method
pub fn set_base_pipeline_index(self, value: i32) -> Self

Set native field basePipelineIndex 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::RayTracingPipelineInterfaceCreateInfoKHR

pub struct RayTracingPipelineInterfaceCreateInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub max_pipeline_ray_payload_size: u32, pub max_pipeline_ray_hit_attribute_size: u32, /* private fields */ }
Native structure VkRayTracingPipelineInterfaceCreateInfoKHR.

Contract

Native structure VkRayTracingPipelineInterfaceCreateInfoKHR.

Khronos reference: VkRayTracingPipelineInterfaceCreateInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

max_pipeline_ray_payload_size

Field
max_pipeline_ray_payload_size: u32

Native field maxPipelineRayPayloadSize.

max_pipeline_ray_hit_attribute_size

Field
max_pipeline_ray_hit_attribute_size: u32

Native field maxPipelineRayHitAttributeSize.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_max_pipeline_ray_payload_size

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

Set native field maxPipelineRayPayloadSize without native effects.

set_max_pipeline_ray_hit_attribute_size

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

Set native field maxPipelineRayHitAttributeSize 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::RayTracingShaderGroupCreateInfoKHR

pub struct RayTracingShaderGroupCreateInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub type: RayTracingShaderGroupTypeKHR, pub general_shader: u32, pub closest_hit_shader: u32, pub any_hit_shader: u32, pub intersection_shader: u32, pub p_shader_group_capture_replay_handle: *const c_void, /* private fields */ }
Native structure VkRayTracingShaderGroupCreateInfoKHR.

Contract

Native structure VkRayTracingShaderGroupCreateInfoKHR.

Khronos reference: VkRayTracingShaderGroupCreateInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

type

Field
type: RayTracingShaderGroupTypeKHR

Native field type.

general_shader

Field
general_shader: u32

Native field generalShader.

closest_hit_shader

Field
closest_hit_shader: u32

Native field closestHitShader.

any_hit_shader

Field
any_hit_shader: u32

Native field anyHitShader.

intersection_shader

Field
intersection_shader: u32

Native field intersectionShader.

p_shader_group_capture_replay_handle

Field
p_shader_group_capture_replay_handle: *const c_void

Native field pShaderGroupCaptureReplayHandle.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_type

Method
pub fn set_type(self, value: RayTracingShaderGroupTypeKHR) -> Self

Set native field type without native effects.

set_general_shader

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

Set native field generalShader without native effects.

set_closest_hit_shader

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

Set native field closestHitShader without native effects.

set_any_hit_shader

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

Set native field anyHitShader without native effects.

set_intersection_shader

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

Set native field intersectionShader without native effects.

set_shader_group_capture_replay_handle

Method
pub unsafe fn set_shader_group_capture_replay_handle( self, value: *const c_void, ) -> Self

Set native pointer pShaderGroupCaptureReplayHandle 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::RayTracingShaderGroupCreateInfoNV

pub struct RayTracingShaderGroupCreateInfoNV<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub type: RayTracingShaderGroupTypeKHR, pub general_shader: u32, pub closest_hit_shader: u32, pub any_hit_shader: u32, pub intersection_shader: u32, /* private fields */ }
Native structure VkRayTracingShaderGroupCreateInfoNV.

Contract

Native structure VkRayTracingShaderGroupCreateInfoNV.

Khronos reference: VkRayTracingShaderGroupCreateInfoNV

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

type

Field
type: RayTracingShaderGroupTypeKHR

Native field type.

general_shader

Field
general_shader: u32

Native field generalShader.

closest_hit_shader

Field
closest_hit_shader: u32

Native field closestHitShader.

any_hit_shader

Field
any_hit_shader: u32

Native field anyHitShader.

intersection_shader

Field
intersection_shader: u32

Native field intersectionShader.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_type

Method
pub fn set_type(self, value: RayTracingShaderGroupTypeKHR) -> Self

Set native field type without native effects.

set_general_shader

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

Set native field generalShader without native effects.

set_closest_hit_shader

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

Set native field closestHitShader without native effects.

set_any_hit_shader

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

Set native field anyHitShader without native effects.

set_intersection_shader

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

Set native field intersectionShader 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::RayTracingShaderGroupTypeKHR

Contract

Open integer representation of VkRayTracingShaderGroupTypeKHR.

Khronos reference: VkRayTracingShaderGroupTypeKHR

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) -> RayTracingShaderGroupTypeKHR
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() -> RayTracingShaderGroupTypeKHR
Returns the “default value” for a type. Read more

eq

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

Stvk::Rect2D

Contract

Native structure VkRect2D.

Khronos reference: VkRect2D

Fields

offset

Field
offset: Offset2D

Native field offset.

extent

Field
extent: Extent2D

Native field extent.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_offset

Method
pub fn set_offset(self, value: Offset2D) -> Self

Set native field offset without native effects.

set_extent

Method
pub fn set_extent(self, value: Extent2D) -> Self

Set native field extent without native effects.

Stvk::RectLayerKHR

Contract

Native structure VkRectLayerKHR.

Khronos reference: VkRectLayerKHR

Fields

offset

Field
offset: Offset2D

Native field offset.

extent

Field
extent: Extent2D

Native field extent.

layer

Field
layer: u32

Native field layer.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_offset

Method
pub fn set_offset(self, value: Offset2D) -> Self

Set native field offset without native effects.

set_extent

Method
pub fn set_extent(self, value: Extent2D) -> Self

Set native field extent without native effects.

set_layer

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

Set native field layer without native effects.

Stvk::RefreshCycleDurationGOOGLE

Contract

Native structure VkRefreshCycleDurationGOOGLE.

Khronos reference: VkRefreshCycleDurationGOOGLE

Fields

refresh_duration

Field
refresh_duration: u64

Native field refreshDuration.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_refresh_duration

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

Set native field refreshDuration without native effects.

clone

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

Stvk::ReleaseCapturedPipelineDataInfoKHR

pub struct ReleaseCapturedPipelineDataInfoKHR<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub pipeline: Pipeline, /* private fields */ }
Native structure VkReleaseCapturedPipelineDataInfoKHR.

Contract

Native structure VkReleaseCapturedPipelineDataInfoKHR.

Khronos reference: VkReleaseCapturedPipelineDataInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

pipeline

Field
pipeline: Pipeline

Native field pipeline.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_pipeline

Method
pub fn set_pipeline(self, value: Pipeline) -> Self

Set native field pipeline 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::ReleaseSwapchainImagesInfoKHR

pub struct ReleaseSwapchainImagesInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub swapchain: SwapchainKHR, pub image_index_count: u32, pub p_image_indices: *const u32, /* private fields */ }
Native structure VkReleaseSwapchainImagesInfoKHR.

Contract

Native structure VkReleaseSwapchainImagesInfoKHR.

Khronos reference: VkReleaseSwapchainImagesInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

swapchain

Field
swapchain: SwapchainKHR

Native field swapchain.

image_index_count

Field
image_index_count: u32

Native field imageIndexCount.

p_image_indices

Field
p_image_indices: *const u32

Native field pImageIndices.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_swapchain

Method
pub fn set_swapchain(self, value: SwapchainKHR) -> Self

Set native field swapchain without native effects.

set_image_index_count

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

Set native count imageIndexCount directly without checking associated pointer extents. Use the borrowed array helpers to derive matching storage and counts together. Direct count edits support null-query/dynamic-state paths and remain a native-call validity obligation, including after earlier borrowed setters.

set_image_indices

Method
pub fn set_image_indices( self, value: &'a [u32], ) -> Result<Self, ConstructionError>

Borrow pImageIndices and set checked native count imageIndexCount. The borrow covers this storage only; nested raw pointers, format, alignment and asynchronous retention remain native-call obligations. Output storage must be initialized; returned sizes do not enlarge its capacity.

Errors

Returns a construction error if the length exceeds the native count width.

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.