pub struct AccelerationStructureGeometrySpheresDataNV<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub vertex_format: Format,
pub vertex_data: DeviceOrHostAddressConstKHR,
pub vertex_stride: DeviceSize,
pub radius_format: Format,
pub radius_data: DeviceOrHostAddressConstKHR,
pub radius_stride: DeviceSize,
pub index_type: IndexType,
pub index_data: DeviceOrHostAddressConstKHR,
pub index_stride: DeviceSize,
/* private fields */
}Expand description
Native structure VkAccelerationStructureGeometrySpheresDataNV.
Khronos reference: VkAccelerationStructureGeometrySpheresDataNV
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.
radius_format: FormatNative field radiusFormat.
radius_data: DeviceOrHostAddressConstKHRNative field radiusData.
radius_stride: DeviceSizeNative field radiusStride.
index_type: IndexTypeNative field indexType.
index_data: DeviceOrHostAddressConstKHRNative field indexData.
index_stride: DeviceSizeNative field indexStride.
Implementations§
Source§impl<'a> AccelerationStructureGeometrySpheresDataNV<'a>
impl<'a> AccelerationStructureGeometrySpheresDataNV<'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_radius_format(self, value: Format) -> Self
pub fn set_radius_format(self, value: Format) -> Self
Set native field radiusFormat without native effects.
Sourcepub fn set_radius_data(self, value: DeviceOrHostAddressConstKHR) -> Self
pub fn set_radius_data(self, value: DeviceOrHostAddressConstKHR) -> Self
Set native field radiusData without native effects.
Sourcepub fn set_radius_stride(self, value: DeviceSize) -> Self
pub fn set_radius_stride(self, value: DeviceSize) -> Self
Set native field radiusStride 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_index_stride(self, value: DeviceSize) -> Self
pub fn set_index_stride(self, value: DeviceSize) -> Self
Set native field indexStride 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.