Skip to main content

ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV

Struct ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV 

Source
#[repr(C)]
pub struct ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV {
Show 14 fields pub cluster_id: u32, pub cluster_flags: ClusterAccelerationStructureClusterFlagsNV, pub _bitfield_1: u32, pub base_geometry_index_and_geometry_flags: ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV, pub index_buffer_stride: u16, pub vertex_buffer_stride: u16, pub geometry_index_and_flags_buffer_stride: u16, pub opacity_micromap_index_buffer_stride: u16, pub index_buffer: DeviceAddress, pub vertex_buffer: DeviceAddress, pub geometry_index_and_flags_buffer: DeviceAddress, pub opacity_micromap_array: DeviceAddress, pub opacity_micromap_index_buffer: DeviceAddress, pub instantiation_bounding_box_limit: DeviceAddress,
}
Expand description

Native structure VkClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV.

Khronos reference: VkClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV

Fields§

§cluster_id: u32

Native field clusterID.

§cluster_flags: ClusterAccelerationStructureClusterFlagsNV

Native field clusterFlags.

§_bitfield_1: u32§base_geometry_index_and_geometry_flags: ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV

Native field baseGeometryIndexAndGeometryFlags.

§index_buffer_stride: u16

Native field indexBufferStride.

§vertex_buffer_stride: u16

Native field vertexBufferStride.

§geometry_index_and_flags_buffer_stride: u16

Native field geometryIndexAndFlagsBufferStride.

§opacity_micromap_index_buffer_stride: u16

Native field opacityMicromapIndexBufferStride.

§index_buffer: DeviceAddress

Native field indexBuffer.

§vertex_buffer: DeviceAddress

Native field vertexBuffer.

§geometry_index_and_flags_buffer: DeviceAddress

Native field geometryIndexAndFlagsBuffer.

§opacity_micromap_array: DeviceAddress

Native field opacityMicromapArray.

§opacity_micromap_index_buffer: DeviceAddress

Native field opacityMicromapIndexBuffer.

§instantiation_bounding_box_limit: DeviceAddress

Native field instantiationBoundingBoxLimit.

Implementations§

Source§

impl ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV

Source

pub const fn triangle_count(&self) -> u32

Read native bitfield triangleCount.

Source

pub fn set_triangle_count(&mut self, value: u32)

Set native bitfield triangleCount, retaining its low 9 bits.

Source

pub const fn vertex_count(&self) -> u32

Read native bitfield vertexCount.

Source

pub fn set_vertex_count(&mut self, value: u32)

Set native bitfield vertexCount, retaining its low 9 bits.

Source

pub const fn position_truncate_bit_count(&self) -> u32

Read native bitfield positionTruncateBitCount.

Source

pub fn set_position_truncate_bit_count(&mut self, value: u32)

Set native bitfield positionTruncateBitCount, retaining its low 6 bits.

Source

pub const fn index_type(&self) -> u32

Read native bitfield indexType.

Source

pub fn set_index_type(&mut self, value: u32)

Set native bitfield indexType, retaining its low 4 bits.

Source

pub const fn opacity_micromap_index_type(&self) -> u32

Read native bitfield opacityMicromapIndexType.

Source

pub fn set_opacity_micromap_index_type(&mut self, value: u32)

Set native bitfield opacityMicromapIndexType, retaining its low 4 bits.

Source§

impl ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV

Source

pub fn new() -> Self

Construct the record with its default native state.

Source

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

Set native field clusterID without native effects.

Source

pub fn set_cluster_flags( self, value: ClusterAccelerationStructureClusterFlagsNV, ) -> Self

Set native field clusterFlags without native effects.

Source

pub fn set_base_geometry_index_and_geometry_flags( self, value: ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV, ) -> Self

Set native field baseGeometryIndexAndGeometryFlags without native effects.

Source

pub fn set_index_buffer_stride(self, value: u16) -> Self

Set native field indexBufferStride without native effects.

Source

pub fn set_vertex_buffer_stride(self, value: u16) -> Self

Set native field vertexBufferStride without native effects.

Source

pub fn set_geometry_index_and_flags_buffer_stride(self, value: u16) -> Self

Set native field geometryIndexAndFlagsBufferStride without native effects.

Source

pub fn set_opacity_micromap_index_buffer_stride(self, value: u16) -> Self

Set native field opacityMicromapIndexBufferStride without native effects.

Source

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

Set native field indexBuffer without native effects.

Source

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

Set native field vertexBuffer without native effects.

Source

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

Set native field geometryIndexAndFlagsBuffer without native effects.

Source

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

Set native field opacityMicromapArray without native effects.

Source

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

Set native field opacityMicromapIndexBuffer without native effects.

Source

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

Set native field instantiationBoundingBoxLimit without native effects.

Trait Implementations§

Source§

impl Clone for ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV

Source§

impl Default for ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.