pub struct AccelerationStructureBuildGeometryInfo {
pub flags: BuildAccelerationStructureFlags,
pub mode: BuildAccelerationStructureMode,
pub dst_acceleration_structure: Option<Arc<AccelerationStructure>>,
pub geometries: AccelerationStructureGeometries,
pub scratch_data: Option<Subbuffer<[u8]>>,
pub _ne: NonExhaustive,
}
Expand description
Geometries and other parameters for an acceleration structure build operation.
Fields§
§flags: BuildAccelerationStructureFlags
Specifies how to build the acceleration structure.
The default value is empty.
mode: BuildAccelerationStructureMode
The mode that the build command should operate in.
This is ignored when calling Device::acceleration_structure_build_sizes
.
The default value is BuildAccelerationStructureMode::Build
.
dst_acceleration_structure: Option<Arc<AccelerationStructure>>
The acceleration structure to build or update.
This can be None
when calling Device::acceleration_structure_build_sizes
,
but must be Some
otherwise.
There is no default value.
geometries: AccelerationStructureGeometries
The geometries that will be built into dst_acceleration_structure
.
The geometry type must match the ty
that was specified when the acceleration structure
was created:
Instances
must be used withTopLevel
orGeneric
.Triangles
andAabbs
must be used withBottomLevel
orGeneric
.
There is no default value.
scratch_data: Option<Subbuffer<[u8]>>
Scratch memory to be used for the build.
This can be None
when calling Device::acceleration_structure_build_sizes
,
but must be Some
otherwise.
The default value is None
.
_ne: NonExhaustive
Implementations§
source§impl AccelerationStructureBuildGeometryInfo
impl AccelerationStructureBuildGeometryInfo
sourcepub fn new(geometries: AccelerationStructureGeometries) -> Self
pub fn new(geometries: AccelerationStructureGeometries) -> Self
Returns a AccelerationStructureBuildGeometryInfo
with the specified geometries
.
Trait Implementations§
source§impl Clone for AccelerationStructureBuildGeometryInfo
impl Clone for AccelerationStructureBuildGeometryInfo
source§fn clone(&self) -> AccelerationStructureBuildGeometryInfo
fn clone(&self) -> AccelerationStructureBuildGeometryInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more