pub struct AccelerationStructureGeometryTrianglesDataKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub vertex_format: Format,
pub vertex_data: DeviceOrHostAddressConstKHR,
pub vertex_stride: DeviceSize,
pub max_vertex: u32,
pub index_type: IndexType,
pub index_data: DeviceOrHostAddressConstKHR,
pub transform_data: DeviceOrHostAddressConstKHR,
/* private fields */
}Expand description
Native structure VkAccelerationStructureGeometryTrianglesDataKHR.
Khronos reference: VkAccelerationStructureGeometryTrianglesDataKHR
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
vertex_format: FormatNative field vertexFormat.
vertex_data: DeviceOrHostAddressConstKHRNative field vertexData.
vertex_stride: DeviceSizeNative field vertexStride.
max_vertex: u32Native field maxVertex.
index_type: IndexTypeNative field indexType.
index_data: DeviceOrHostAddressConstKHRNative field indexData.
transform_data: DeviceOrHostAddressConstKHRNative field transformData.
Implementations§
Source§impl<'a> AccelerationStructureGeometryTrianglesDataKHR<'a>
impl<'a> AccelerationStructureGeometryTrianglesDataKHR<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_vertex_format(self, value: Format) -> Self
pub fn set_vertex_format(self, value: Format) -> Self
Set native field vertexFormat without native effects.
Sourcepub fn set_vertex_data(self, value: DeviceOrHostAddressConstKHR) -> Self
pub fn set_vertex_data(self, value: DeviceOrHostAddressConstKHR) -> Self
Set native field vertexData without native effects.
Sourcepub fn set_vertex_stride(self, value: DeviceSize) -> Self
pub fn set_vertex_stride(self, value: DeviceSize) -> Self
Set native field vertexStride without native effects.
Sourcepub fn set_max_vertex(self, value: u32) -> Self
pub fn set_max_vertex(self, value: u32) -> Self
Set native field maxVertex without native effects.
Sourcepub fn set_index_type(self, value: IndexType) -> Self
pub fn set_index_type(self, value: IndexType) -> Self
Set native field indexType without native effects.
Sourcepub fn set_index_data(self, value: DeviceOrHostAddressConstKHR) -> Self
pub fn set_index_data(self, value: DeviceOrHostAddressConstKHR) -> Self
Set native field indexData without native effects.
Sourcepub fn set_transform_data(self, value: DeviceOrHostAddressConstKHR) -> Self
pub fn set_transform_data(self, value: DeviceOrHostAddressConstKHR) -> Self
Set native field transformData without native effects.
Sourcepub fn push_next<T: Extends<Self>>(
self,
next: &'a mut T,
) -> Result<Self, ConstructionError>
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.
Trait Implementations§
Source§impl<'a> Default for AccelerationStructureGeometryTrianglesDataKHR<'a>
impl<'a> Default for AccelerationStructureGeometryTrianglesDataKHR<'a>
impl<'a, 'root> Extends<AccelerationStructureGeometryTrianglesDataKHR<'root>> for AccelerationStructureGeometryMotionTrianglesDataNV<'a>
impl<'a, 'root> Extends<AccelerationStructureGeometryTrianglesDataKHR<'root>> for AccelerationStructureTrianglesOpacityMicromapKHR<'a>
impl<'a, 'root> Extends<AccelerationStructureGeometryTrianglesDataKHR<'root>> for AccelerationStructureTrianglesOpacityMicromapEXT<'a>
impl<'a, 'root> Extends<AccelerationStructureGeometryTrianglesDataKHR<'root>> for AccelerationStructureTrianglesDisplacementMicromapNV<'a>
provisional only.