Realm

vk · Structs · A1

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

StRustExperimental

Stvk::AabbPositionsKHR

Contract

Native structure VkAabbPositionsKHR.

Khronos reference: VkAabbPositionsKHR

Fields

min_x

Field
min_x: f32

Native field minX.

min_y

Field
min_y: f32

Native field minY.

min_z

Field
min_z: f32

Native field minZ.

max_x

Field
max_x: f32

Native field maxX.

max_y

Field
max_y: f32

Native field maxY.

max_z

Field
max_z: f32

Native field maxZ.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_min_x

Method
pub fn set_min_x(self, value: f32) -> Self

Set native field minX without native effects.

set_min_y

Method
pub fn set_min_y(self, value: f32) -> Self

Set native field minY without native effects.

set_min_z

Method
pub fn set_min_z(self, value: f32) -> Self

Set native field minZ without native effects.

set_max_x

Method
pub fn set_max_x(self, value: f32) -> Self

Set native field maxX without native effects.

set_max_y

Method
pub fn set_max_y(self, value: f32) -> Self

Set native field maxY without native effects.

set_max_z

Method
pub fn set_max_z(self, value: f32) -> Self

Set native field maxZ without native effects.

Stvk::AccelerationStructureBuildGeometryInfoKHR

pub struct AccelerationStructureBuildGeometryInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub type: AccelerationStructureTypeKHR, pub flags: BuildAccelerationStructureFlagsKHR, pub mode: BuildAccelerationStructureModeKHR, pub src_acceleration_structure: AccelerationStructureKHR, pub dst_acceleration_structure: AccelerationStructureKHR, pub geometry_count: u32, pub p_geometries: *const AccelerationStructureGeometryKHR<'a>, pub pp_geometries: *const *const AccelerationStructureGeometryKHR<'a>, pub scratch_data: DeviceOrHostAddressKHR, /* private fields */ }
Native structure VkAccelerationStructureBuildGeometryInfoKHR.

Contract

Native structure VkAccelerationStructureBuildGeometryInfoKHR.

Khronos reference: VkAccelerationStructureBuildGeometryInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

type

Field
type: AccelerationStructureTypeKHR

Native field type.

flags

Field
flags: BuildAccelerationStructureFlagsKHR

Native field flags.

mode

Field
mode: BuildAccelerationStructureModeKHR

Native field mode.

src_acceleration_structure

Field
src_acceleration_structure: AccelerationStructureKHR

Native field srcAccelerationStructure.

dst_acceleration_structure

Field
dst_acceleration_structure: AccelerationStructureKHR

Native field dstAccelerationStructure.

geometry_count

Field
geometry_count: u32

Native field geometryCount.

p_geometries

Field
p_geometries: *const AccelerationStructureGeometryKHR<'a>

Native field pGeometries.

pp_geometries

Field
pp_geometries: *const *const AccelerationStructureGeometryKHR<'a>

Native field ppGeometries.

scratch_data

Field
scratch_data: DeviceOrHostAddressKHR

Native field scratchData.

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

Set native field type without native effects.

set_flags

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

Set native field flags without native effects.

set_mode

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

Set native field mode without native effects.

set_src_acceleration_structure

Method
pub fn set_src_acceleration_structure( self, value: AccelerationStructureKHR, ) -> Self

Set native field srcAccelerationStructure without native effects.

set_dst_acceleration_structure

Method
pub fn set_dst_acceleration_structure( self, value: AccelerationStructureKHR, ) -> Self

Set native field dstAccelerationStructure without native effects.

set_geometry_count

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

Set native count geometryCount 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_geometries

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

Borrow pGeometries and set checked native count geometryCount. 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_pp_geometries

Method
pub fn set_pp_geometries( self, value: &'a [*const AccelerationStructureGeometryKHR<'a>], ) -> Result<Self, ConstructionError>

Borrow ppGeometries and set checked native count geometryCount. 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_scratch_data

Method
pub fn set_scratch_data(self, value: DeviceOrHostAddressKHR) -> Self

Set native field scratchData 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::AccelerationStructureBuildRangeInfoKHR

#[repr(C)]pub struct AccelerationStructureBuildRangeInfoKHR { pub primitive_count: u32, pub primitive_offset: u32, pub first_vertex: u32, pub transform_offset: u32, }
Native structure VkAccelerationStructureBuildRangeInfoKHR.

Contract

Native structure VkAccelerationStructureBuildRangeInfoKHR.

Khronos reference: VkAccelerationStructureBuildRangeInfoKHR

Fields

primitive_count

Field
primitive_count: u32

Native field primitiveCount.

primitive_offset

Field
primitive_offset: u32

Native field primitiveOffset.

first_vertex

Field
first_vertex: u32

Native field firstVertex.

transform_offset

Field
transform_offset: u32

Native field transformOffset.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_primitive_count

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

Set native field primitiveCount without native effects.

set_primitive_offset

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

Set native field primitiveOffset without native effects.

set_first_vertex

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

Set native field firstVertex without native effects.

set_transform_offset

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

Set native field transformOffset without native effects.

clone

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

Stvk::AccelerationStructureBuildSizesInfoKHR

pub struct AccelerationStructureBuildSizesInfoKHR<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub acceleration_structure_size: DeviceSize, pub update_scratch_size: DeviceSize, pub build_scratch_size: DeviceSize, /* private fields */ }
Native structure VkAccelerationStructureBuildSizesInfoKHR.

Contract

Native structure VkAccelerationStructureBuildSizesInfoKHR.

Khronos reference: VkAccelerationStructureBuildSizesInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

acceleration_structure_size

Field
acceleration_structure_size: DeviceSize

Native field accelerationStructureSize.

update_scratch_size

Field
update_scratch_size: DeviceSize

Native field updateScratchSize.

build_scratch_size

Field
build_scratch_size: DeviceSize

Native field buildScratchSize.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_acceleration_structure_size

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

Set native field accelerationStructureSize without native effects.

set_update_scratch_size

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

Set native field updateScratchSize without native effects.

set_build_scratch_size

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

Set native field buildScratchSize 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::AccelerationStructureBuildTypeKHR

Contract

Open integer representation of VkAccelerationStructureBuildTypeKHR.

Khronos reference: VkAccelerationStructureBuildTypeKHR

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

eq

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

Stvk::AccelerationStructureCaptureDescriptorDataInfoEXT

pub struct AccelerationStructureCaptureDescriptorDataInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub acceleration_structure: AccelerationStructureKHR, pub acceleration_structure_nv: AccelerationStructureNV, /* private fields */ }
Native structure VkAccelerationStructureCaptureDescriptorDataInfoEXT.

Contract

Native structure VkAccelerationStructureCaptureDescriptorDataInfoEXT.

Khronos reference: VkAccelerationStructureCaptureDescriptorDataInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

acceleration_structure

Field
acceleration_structure: AccelerationStructureKHR

Native field accelerationStructure.

acceleration_structure_nv

Field
acceleration_structure_nv: AccelerationStructureNV

Native field accelerationStructureNV.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_acceleration_structure

Method
pub fn set_acceleration_structure(self, value: AccelerationStructureKHR) -> Self

Set native field accelerationStructure without native effects.

set_acceleration_structure_nv

Method
pub fn set_acceleration_structure_nv( self, value: AccelerationStructureNV, ) -> Self

Set native field accelerationStructureNV 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::AccelerationStructureCompatibilityKHR

Contract

Open integer representation of VkAccelerationStructureCompatibilityKHR.

Khronos reference: VkAccelerationStructureCompatibilityKHR

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

eq

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

Stvk::AccelerationStructureCreateFlagBitsKHR

Contract

Open integer representation of VkAccelerationStructureCreateFlagBitsKHR.

Khronos reference: VkAccelerationStructureCreateFlagBitsKHR

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 = AccelerationStructureCreateFlagBitsKHR
The resulting type after applying the & operator.

Output-1

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

Output-2

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

clone

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

Output-3

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

eq

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

Stvk::AccelerationStructureCreateInfo2KHR

pub struct AccelerationStructureCreateInfo2KHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub create_flags: AccelerationStructureCreateFlagsKHR, pub address_range: DeviceAddressRangeKHR, pub address_flags: AddressCommandFlagsKHR, pub type: AccelerationStructureTypeKHR, /* private fields */ }
Native structure VkAccelerationStructureCreateInfo2KHR.

Contract

Native structure VkAccelerationStructureCreateInfo2KHR.

Khronos reference: VkAccelerationStructureCreateInfo2KHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

create_flags

Field
create_flags: AccelerationStructureCreateFlagsKHR

Native field createFlags.

address_range

Field
address_range: DeviceAddressRangeKHR

Native field addressRange.

address_flags

Field
address_flags: AddressCommandFlagsKHR

Native field addressFlags.

type

Field
type: AccelerationStructureTypeKHR

Native field type.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_create_flags

Method
pub fn set_create_flags( self, value: AccelerationStructureCreateFlagsKHR, ) -> Self

Set native field createFlags without native effects.

set_address_range

Method
pub fn set_address_range(self, value: DeviceAddressRangeKHR) -> Self

Set native field addressRange without native effects.

set_address_flags

Method
pub fn set_address_flags(self, value: AddressCommandFlagsKHR) -> Self

Set native field addressFlags without native effects.

set_type

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

Set native field type 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::AccelerationStructureCreateInfoKHR

pub struct AccelerationStructureCreateInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub create_flags: AccelerationStructureCreateFlagsKHR, pub buffer: Buffer, pub offset: DeviceSize, pub size: DeviceSize, pub type: AccelerationStructureTypeKHR, pub device_address: DeviceAddress, /* private fields */ }
Native structure VkAccelerationStructureCreateInfoKHR.

Contract

Native structure VkAccelerationStructureCreateInfoKHR.

Khronos reference: VkAccelerationStructureCreateInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

create_flags

Field
create_flags: AccelerationStructureCreateFlagsKHR

Native field createFlags.

buffer

Field
buffer: Buffer

Native field buffer.

offset

Field
offset: DeviceSize

Native field offset.

size

Field
size: DeviceSize

Native field size.

type

Field
type: AccelerationStructureTypeKHR

Native field type.

device_address

Field
device_address: DeviceAddress

Native field deviceAddress.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_create_flags

Method
pub fn set_create_flags( self, value: AccelerationStructureCreateFlagsKHR, ) -> Self

Set native field createFlags without native effects.

set_buffer

Method
pub fn set_buffer(self, value: Buffer) -> Self

Set native field buffer without native effects.

set_offset

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

Set native field offset without native effects.

set_size

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

Set native field size without native effects.

set_type

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

Set native field type without native effects.

set_device_address

Method
pub fn set_device_address(self, value: DeviceAddress) -> Self

Set native field deviceAddress 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::AccelerationStructureCreateInfoNV

pub struct AccelerationStructureCreateInfoNV<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub compacted_size: DeviceSize, pub info: AccelerationStructureInfoNV<'a>, /* private fields */ }
Native structure VkAccelerationStructureCreateInfoNV.

Contract

Native structure VkAccelerationStructureCreateInfoNV.

Khronos reference: VkAccelerationStructureCreateInfoNV

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

compacted_size

Field
compacted_size: DeviceSize

Native field compactedSize.

info

Field
info: AccelerationStructureInfoNV<'a>

Native field info.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_compacted_size

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

Set native field compactedSize without native effects.

set_info

Method
pub fn set_info(self, value: AccelerationStructureInfoNV<'a>) -> Self

Set native field info 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::AccelerationStructureDenseGeometryFormatTrianglesDataAMDX

pub struct AccelerationStructureDenseGeometryFormatTrianglesDataAMDX<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub compressed_data: DeviceOrHostAddressConstKHR, pub data_size: DeviceSize, pub num_triangles: u32, pub num_vertices: u32, pub max_primitive_index: u32, pub max_geometry_index: u32, pub format: CompressedTriangleFormatAMDX, /* private fields */ }
Native structure VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.

Contract

Native structure VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX.

Khronos reference: VkAccelerationStructureDenseGeometryFormatTrianglesDataAMDX

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

compressed_data

Field
compressed_data: DeviceOrHostAddressConstKHR

Native field compressedData.

data_size

Field
data_size: DeviceSize

Native field dataSize.

num_triangles

Field
num_triangles: u32

Native field numTriangles.

num_vertices

Field
num_vertices: u32

Native field numVertices.

max_primitive_index

Field
max_primitive_index: u32

Native field maxPrimitiveIndex.

max_geometry_index

Field
max_geometry_index: u32

Native field maxGeometryIndex.

format

Field
format: CompressedTriangleFormatAMDX

Native field format.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_compressed_data

Method
pub fn set_compressed_data(self, value: DeviceOrHostAddressConstKHR) -> Self

Set native field compressedData without native effects.

set_data_size

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

Set native field dataSize without native effects.

set_num_triangles

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

Set native field numTriangles without native effects.

set_num_vertices

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

Set native field numVertices without native effects.

set_max_primitive_index

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

Set native field maxPrimitiveIndex without native effects.

set_max_geometry_index

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

Set native field maxGeometryIndex without native effects.

set_format

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

Set native field format 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::AccelerationStructureDeviceAddressInfoKHR

pub struct AccelerationStructureDeviceAddressInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub acceleration_structure: AccelerationStructureKHR, /* private fields */ }
Native structure VkAccelerationStructureDeviceAddressInfoKHR.

Contract

Native structure VkAccelerationStructureDeviceAddressInfoKHR.

Khronos reference: VkAccelerationStructureDeviceAddressInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

acceleration_structure

Field
acceleration_structure: AccelerationStructureKHR

Native field accelerationStructure.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_acceleration_structure

Method
pub fn set_acceleration_structure(self, value: AccelerationStructureKHR) -> Self

Set native field accelerationStructure 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::AccelerationStructureGeometryAabbsDataKHR

pub struct AccelerationStructureGeometryAabbsDataKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub data: DeviceOrHostAddressConstKHR, pub stride: DeviceSize, /* private fields */ }
Native structure VkAccelerationStructureGeometryAabbsDataKHR.

Contract

Native structure VkAccelerationStructureGeometryAabbsDataKHR.

Khronos reference: VkAccelerationStructureGeometryAabbsDataKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

data

Field
data: DeviceOrHostAddressConstKHR

Native field data.

stride

Field
stride: DeviceSize

Native field stride.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_data

Method
pub fn set_data(self, value: DeviceOrHostAddressConstKHR) -> Self

Set native field data without native effects.

set_stride

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

Set native field stride 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::AccelerationStructureGeometryInstancesDataKHR

pub struct AccelerationStructureGeometryInstancesDataKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub array_of_pointers: Bool32, pub data: DeviceOrHostAddressConstKHR, /* private fields */ }
Native structure VkAccelerationStructureGeometryInstancesDataKHR.

Contract

Native structure VkAccelerationStructureGeometryInstancesDataKHR.

Khronos reference: VkAccelerationStructureGeometryInstancesDataKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

array_of_pointers

Field
array_of_pointers: Bool32

Native field arrayOfPointers.

data

Field
data: DeviceOrHostAddressConstKHR

Native field data.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_array_of_pointers

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

Set native field arrayOfPointers without native effects.

set_data

Method
pub fn set_data(self, value: DeviceOrHostAddressConstKHR) -> Self

Set native field data 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::AccelerationStructureGeometryKHR

pub struct AccelerationStructureGeometryKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub geometry_type: GeometryTypeKHR, pub geometry: AccelerationStructureGeometryDataKHR<'a>, pub flags: GeometryFlagsKHR, /* private fields */ }
Native structure VkAccelerationStructureGeometryKHR.

Contract

Native structure VkAccelerationStructureGeometryKHR.

Khronos reference: VkAccelerationStructureGeometryKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

geometry_type

Field
geometry_type: GeometryTypeKHR

Native field geometryType.

geometry

Field
geometry: AccelerationStructureGeometryDataKHR<'a>

Native field geometry.

flags

Field
flags: GeometryFlagsKHR

Native field flags.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_geometry_type

Method
pub fn set_geometry_type(self, value: GeometryTypeKHR) -> Self

Set native field geometryType without native effects.

set_geometry

Method
pub fn set_geometry( self, value: AccelerationStructureGeometryDataKHR<'a>, ) -> Self

Set native field geometry without native effects.

set_flags

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

Set native field flags 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.