pub struct DeferredScan {
pub offsets: Buffer,
pub total: Buffer,
pub levels: usize,
}Expand description
A scan whose total is still on the GPU.
The zero-synchronisation form: nothing is read back, so the CPU never waits
for the dispatches to finish and the caller can keep recording. The price is
that the caller does not know how many triangles there will be, which is what
MarchingCubesGpu::extract_indirect
solves with a budget.
Fields§
§offsets: BufferThe exclusive prefix sum, one u32 per input element.
total: BufferA one-element buffer holding the sum of every input element.
levels: usizeLevels the hierarchy needed. Zero when there was nothing to scan.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DeferredScan
impl !UnwindSafe for DeferredScan
impl Forget for DeferredScan
impl Freeze for DeferredScan
impl Send for DeferredScan
impl Sync for DeferredScan
impl Unpin for DeferredScan
impl UnsafeUnpin for DeferredScan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more