#[repr(C)]pub struct ClusterAccelerationStructureBuildTriangleClusterInfoNV {Show 13 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,
}Expand description
Native structure VkClusterAccelerationStructureBuildTriangleClusterInfoNV.
Khronos reference: VkClusterAccelerationStructureBuildTriangleClusterInfoNV
Fields§
§cluster_id: u32Native field clusterID.
cluster_flags: ClusterAccelerationStructureClusterFlagsNVNative field clusterFlags.
_bitfield_1: u32§base_geometry_index_and_geometry_flags: ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNVNative field baseGeometryIndexAndGeometryFlags.
index_buffer_stride: u16Native field indexBufferStride.
vertex_buffer_stride: u16Native field vertexBufferStride.
geometry_index_and_flags_buffer_stride: u16Native field geometryIndexAndFlagsBufferStride.
opacity_micromap_index_buffer_stride: u16Native field opacityMicromapIndexBufferStride.
index_buffer: DeviceAddressNative field indexBuffer.
vertex_buffer: DeviceAddressNative field vertexBuffer.
geometry_index_and_flags_buffer: DeviceAddressNative field geometryIndexAndFlagsBuffer.
opacity_micromap_array: DeviceAddressNative field opacityMicromapArray.
opacity_micromap_index_buffer: DeviceAddressNative field opacityMicromapIndexBuffer.
Implementations§
Source§impl ClusterAccelerationStructureBuildTriangleClusterInfoNV
impl ClusterAccelerationStructureBuildTriangleClusterInfoNV
Sourcepub const fn triangle_count(&self) -> u32
pub const fn triangle_count(&self) -> u32
Read native bitfield triangleCount.
Sourcepub fn set_triangle_count(&mut self, value: u32)
pub fn set_triangle_count(&mut self, value: u32)
Set native bitfield triangleCount, retaining its low 9 bits.
Sourcepub const fn vertex_count(&self) -> u32
pub const fn vertex_count(&self) -> u32
Read native bitfield vertexCount.
Sourcepub fn set_vertex_count(&mut self, value: u32)
pub fn set_vertex_count(&mut self, value: u32)
Set native bitfield vertexCount, retaining its low 9 bits.
Sourcepub const fn position_truncate_bit_count(&self) -> u32
pub const fn position_truncate_bit_count(&self) -> u32
Read native bitfield positionTruncateBitCount.
Sourcepub fn set_position_truncate_bit_count(&mut self, value: u32)
pub fn set_position_truncate_bit_count(&mut self, value: u32)
Set native bitfield positionTruncateBitCount, retaining its low 6 bits.
Sourcepub const fn index_type(&self) -> u32
pub const fn index_type(&self) -> u32
Read native bitfield indexType.
Sourcepub fn set_index_type(&mut self, value: u32)
pub fn set_index_type(&mut self, value: u32)
Set native bitfield indexType, retaining its low 4 bits.
Sourcepub const fn opacity_micromap_index_type(&self) -> u32
pub const fn opacity_micromap_index_type(&self) -> u32
Read native bitfield opacityMicromapIndexType.
Sourcepub fn set_opacity_micromap_index_type(&mut self, value: u32)
pub fn set_opacity_micromap_index_type(&mut self, value: u32)
Set native bitfield opacityMicromapIndexType, retaining its low 4 bits.
Source§impl ClusterAccelerationStructureBuildTriangleClusterInfoNV
impl ClusterAccelerationStructureBuildTriangleClusterInfoNV
Sourcepub fn set_cluster_id(self, value: u32) -> Self
pub fn set_cluster_id(self, value: u32) -> Self
Set native field clusterID without native effects.
Sourcepub fn set_cluster_flags(
self,
value: ClusterAccelerationStructureClusterFlagsNV,
) -> Self
pub fn set_cluster_flags( self, value: ClusterAccelerationStructureClusterFlagsNV, ) -> Self
Set native field clusterFlags without native effects.
Sourcepub fn set_base_geometry_index_and_geometry_flags(
self,
value: ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV,
) -> Self
pub fn set_base_geometry_index_and_geometry_flags( self, value: ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV, ) -> Self
Set native field baseGeometryIndexAndGeometryFlags without native effects.
Sourcepub fn set_index_buffer_stride(self, value: u16) -> Self
pub fn set_index_buffer_stride(self, value: u16) -> Self
Set native field indexBufferStride without native effects.
Sourcepub fn set_vertex_buffer_stride(self, value: u16) -> Self
pub fn set_vertex_buffer_stride(self, value: u16) -> Self
Set native field vertexBufferStride without native effects.
Sourcepub fn set_geometry_index_and_flags_buffer_stride(self, value: u16) -> Self
pub fn set_geometry_index_and_flags_buffer_stride(self, value: u16) -> Self
Set native field geometryIndexAndFlagsBufferStride without native effects.
Sourcepub fn set_opacity_micromap_index_buffer_stride(self, value: u16) -> Self
pub fn set_opacity_micromap_index_buffer_stride(self, value: u16) -> Self
Set native field opacityMicromapIndexBufferStride without native effects.
Sourcepub fn set_index_buffer(self, value: DeviceAddress) -> Self
pub fn set_index_buffer(self, value: DeviceAddress) -> Self
Set native field indexBuffer without native effects.
Sourcepub fn set_vertex_buffer(self, value: DeviceAddress) -> Self
pub fn set_vertex_buffer(self, value: DeviceAddress) -> Self
Set native field vertexBuffer without native effects.
Sourcepub fn set_geometry_index_and_flags_buffer(self, value: DeviceAddress) -> Self
pub fn set_geometry_index_and_flags_buffer(self, value: DeviceAddress) -> Self
Set native field geometryIndexAndFlagsBuffer without native effects.
Sourcepub fn set_opacity_micromap_array(self, value: DeviceAddress) -> Self
pub fn set_opacity_micromap_array(self, value: DeviceAddress) -> Self
Set native field opacityMicromapArray without native effects.
Sourcepub fn set_opacity_micromap_index_buffer(self, value: DeviceAddress) -> Self
pub fn set_opacity_micromap_index_buffer(self, value: DeviceAddress) -> Self
Set native field opacityMicromapIndexBuffer without native effects.