Realm

vk · Unions · D1

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

UnRustExperimental

Unvk::DescriptorDataEXT

pub union DescriptorDataEXT<'a> { pub p_sampler: *const Sampler, pub p_combined_image_sampler: *const DescriptorImageInfo, pub p_input_attachment_image: *const DescriptorImageInfo, pub p_sampled_image: *const DescriptorImageInfo, pub p_storage_image: *const DescriptorImageInfo, pub p_uniform_texel_buffer: *const DescriptorAddressInfoEXT<'a>, pub p_storage_texel_buffer: *const DescriptorAddressInfoEXT<'a>, pub p_uniform_buffer: *const DescriptorAddressInfoEXT<'a>, pub p_storage_buffer: *const DescriptorAddressInfoEXT<'a>, pub acceleration_structure: DeviceAddress, /* private fields */ }
Native union VkDescriptorDataEXT.

Contract

Native union VkDescriptorDataEXT.

Khronos reference: VkDescriptorDataEXT

Fields

p_sampler

Field
p_sampler: *const Sampler

Native field pSampler.

p_combined_image_sampler

Field
p_combined_image_sampler: *const DescriptorImageInfo

Native field pCombinedImageSampler.

p_input_attachment_image

Field
p_input_attachment_image: *const DescriptorImageInfo

Native field pInputAttachmentImage.

p_sampled_image

Field
p_sampled_image: *const DescriptorImageInfo

Native field pSampledImage.

p_storage_image

Field
p_storage_image: *const DescriptorImageInfo

Native field pStorageImage.

p_uniform_texel_buffer

Field
p_uniform_texel_buffer: *const DescriptorAddressInfoEXT<'a>

Native field pUniformTexelBuffer.

p_storage_texel_buffer

Field
p_storage_texel_buffer: *const DescriptorAddressInfoEXT<'a>

Native field pStorageTexelBuffer.

p_uniform_buffer

Field
p_uniform_buffer: *const DescriptorAddressInfoEXT<'a>

Native field pUniformBuffer.

p_storage_buffer

Field
p_storage_buffer: *const DescriptorAddressInfoEXT<'a>

Native field pStorageBuffer.

acceleration_structure

Field
acceleration_structure: DeviceAddress

Native field accelerationStructure.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_sampler

Method
pub fn set_sampler(self, value: &'a Sampler) -> Self

Set native field pSampler without native effects.

set_combined_image_sampler

Method
pub fn set_combined_image_sampler(self, value: &'a DescriptorImageInfo) -> Self

Set native field pCombinedImageSampler without native effects.

set_input_attachment_image

Method
pub fn set_input_attachment_image(self, value: &'a DescriptorImageInfo) -> Self

Set native field pInputAttachmentImage without native effects.

set_sampled_image

Method
pub fn set_sampled_image(self, value: &'a DescriptorImageInfo) -> Self

Set native field pSampledImage without native effects.

set_storage_image

Method
pub fn set_storage_image(self, value: &'a DescriptorImageInfo) -> Self

Set native field pStorageImage without native effects.

set_uniform_texel_buffer

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

Set native field pUniformTexelBuffer without native effects.

set_storage_texel_buffer

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

Set native field pStorageTexelBuffer without native effects.

set_uniform_buffer

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

Set native field pUniformBuffer without native effects.

set_storage_buffer

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

Set native field pStorageBuffer without native effects.

set_acceleration_structure

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

Set native field accelerationStructure without native effects.

clone

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

Unvk::DescriptorMappingSourceDataEXT

pub union DescriptorMappingSourceDataEXT<'a> { pub constant_offset: DescriptorMappingSourceConstantOffsetEXT<'a>, pub push_index: DescriptorMappingSourcePushIndexEXT<'a>, pub indirect_index: DescriptorMappingSourceIndirectIndexEXT<'a>, pub indirect_index_array: DescriptorMappingSourceIndirectIndexArrayEXT<'a>, pub heap_data: DescriptorMappingSourceHeapDataEXT, pub push_data_offset: u32, pub push_address_offset: u32, pub indirect_address: DescriptorMappingSourceIndirectAddressEXT, pub shader_record_index: DescriptorMappingSourceShaderRecordIndexEXT<'a>, pub shader_record_data_offset: u32, pub shader_record_address_offset: u32, /* private fields */ }
Native union VkDescriptorMappingSourceDataEXT.

Contract

Native union VkDescriptorMappingSourceDataEXT.

Khronos reference: VkDescriptorMappingSourceDataEXT

Fields

constant_offset

Field
constant_offset: DescriptorMappingSourceConstantOffsetEXT<'a>

Native field constantOffset.

push_index

Field
push_index: DescriptorMappingSourcePushIndexEXT<'a>

Native field pushIndex.

indirect_index

Field
indirect_index: DescriptorMappingSourceIndirectIndexEXT<'a>

Native field indirectIndex.

indirect_index_array

Field
indirect_index_array: DescriptorMappingSourceIndirectIndexArrayEXT<'a>

Native field indirectIndexArray.

heap_data

Field
heap_data: DescriptorMappingSourceHeapDataEXT

Native field heapData.

push_data_offset

Field
push_data_offset: u32

Native field pushDataOffset.

push_address_offset

Field
push_address_offset: u32

Native field pushAddressOffset.

indirect_address

Field
indirect_address: DescriptorMappingSourceIndirectAddressEXT

Native field indirectAddress.

shader_record_index

Field
shader_record_index: DescriptorMappingSourceShaderRecordIndexEXT<'a>

Native field shaderRecordIndex.

shader_record_data_offset

Field
shader_record_data_offset: u32

Native field shaderRecordDataOffset.

shader_record_address_offset

Field
shader_record_address_offset: u32

Native field shaderRecordAddressOffset.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_constant_offset

Method
pub fn set_constant_offset( self, value: DescriptorMappingSourceConstantOffsetEXT<'a>, ) -> Self

Set native field constantOffset without native effects.

set_push_index

Method
pub fn set_push_index( self, value: DescriptorMappingSourcePushIndexEXT<'a>, ) -> Self

Set native field pushIndex without native effects.

set_indirect_index

Method
pub fn set_indirect_index( self, value: DescriptorMappingSourceIndirectIndexEXT<'a>, ) -> Self

Set native field indirectIndex without native effects.

set_indirect_index_array

Method
pub fn set_indirect_index_array( self, value: DescriptorMappingSourceIndirectIndexArrayEXT<'a>, ) -> Self

Set native field indirectIndexArray without native effects.

set_heap_data

Method
pub fn set_heap_data(self, value: DescriptorMappingSourceHeapDataEXT) -> Self

Set native field heapData without native effects.

set_push_data_offset

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

Set native field pushDataOffset without native effects.

set_push_address_offset

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

Set native field pushAddressOffset without native effects.

set_indirect_address

Method
pub fn set_indirect_address( self, value: DescriptorMappingSourceIndirectAddressEXT, ) -> Self

Set native field indirectAddress without native effects.

set_shader_record_index

Method
pub fn set_shader_record_index( self, value: DescriptorMappingSourceShaderRecordIndexEXT<'a>, ) -> Self

Set native field shaderRecordIndex without native effects.

set_shader_record_data_offset

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

Set native field shaderRecordDataOffset without native effects.

set_shader_record_address_offset

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

Set native field shaderRecordAddressOffset without native effects.

clone

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

Unvk::DeviceOrHostAddressConstAMDX

Contract

Native union VkDeviceOrHostAddressConstAMDX.

Khronos reference: VkDeviceOrHostAddressConstAMDX

Fields

device_address

Field
device_address: DeviceAddress

Native field deviceAddress.

host_address

Field
host_address: *const c_void

Native field hostAddress.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_device_address

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

Set native field deviceAddress without native effects.

set_host_address

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

Set native pointer hostAddress 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.

clone

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

Unvk::DeviceOrHostAddressConstKHR

Contract

Native union VkDeviceOrHostAddressConstKHR.

Khronos reference: VkDeviceOrHostAddressConstKHR

Fields

device_address

Field
device_address: DeviceAddress

Native field deviceAddress.

host_address

Field
host_address: *const c_void

Native field hostAddress.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_device_address

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

Set native field deviceAddress without native effects.

set_host_address

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

Set native pointer hostAddress 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.

clone

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

Unvk::DeviceOrHostAddressKHR

Contract

Native union VkDeviceOrHostAddressKHR.

Khronos reference: VkDeviceOrHostAddressKHR

Fields

device_address

Field
device_address: DeviceAddress

Native field deviceAddress.

host_address

Field
host_address: *mut c_void

Native field hostAddress.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_device_address

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

Set native field deviceAddress without native effects.

set_host_address

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

Set native pointer hostAddress 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.

clone

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