pub struct RayTraceAccelerationScratchBuffer<P> where
P: SharedPointerKind, { /* private fields */ }Implementations
sourceimpl<P> RayTraceAccelerationScratchBuffer<P> where
P: SharedPointerKind,
impl<P> RayTraceAccelerationScratchBuffer<P> where
P: SharedPointerKind,
pub const RT_SCRATCH_BUFFER_SIZE: u64
pub fn create(device: &Shared<Device<P>, P>) -> Result<Self, DriverError>
pub fn create_tlas(
&self,
_info: RayTraceTopAccelerationInfo<P>
) -> Result<RayTraceAcceleration<P>, DriverError>
pub fn create_blas(
&self,
info: &RayTraceBottomAccelerationDesc,
_scratch_buf: &RayTraceAccelerationScratchBuffer<P>
) -> Result<RayTraceAcceleration<P>, DriverError>
pub fn map_instances<'a>(
&'a self,
instances: impl Iterator<Item = RayTraceInstanceInfo<P>> + 'a
) -> impl Iterator<Item = RayTraceInstance> + 'a
pub fn rebuild_tlas(
&self,
cb: CommandBuffer,
inst_buf_address: DeviceAddress,
instance_count: usize,
tlas: &RayTraceAcceleration<P>
)
Trait Implementations
sourceimpl<P: Clone> Clone for RayTraceAccelerationScratchBuffer<P> where
P: SharedPointerKind,
impl<P: Clone> Clone for RayTraceAccelerationScratchBuffer<P> where
P: SharedPointerKind,
sourcefn clone(&self) -> RayTraceAccelerationScratchBuffer<P>
fn clone(&self) -> RayTraceAccelerationScratchBuffer<P>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<P: Debug> Debug for RayTraceAccelerationScratchBuffer<P> where
P: SharedPointerKind,
impl<P: Debug> Debug for RayTraceAccelerationScratchBuffer<P> where
P: SharedPointerKind,
Auto Trait Implementations
impl<P> !RefUnwindSafe for RayTraceAccelerationScratchBuffer<P>
impl<P> !Send for RayTraceAccelerationScratchBuffer<P>
impl<P> !Sync for RayTraceAccelerationScratchBuffer<P>
impl<P> Unpin for RayTraceAccelerationScratchBuffer<P> where
P: Unpin,
impl<P> !UnwindSafe for RayTraceAccelerationScratchBuffer<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more