pub struct GpuAoSoNormals { /* private fields */ }Expand description
GPU-resident (nx, ny, nz, curvature) output for AoSoA positions.
Implementations§
Source§impl GpuAoSoNormals
impl GpuAoSoNormals
Sourcepub const fn point_count(&self) -> usize
pub const fn point_count(&self) -> usize
Returns the number of normal records.
Sourcepub fn recycle(self, runtime: &WgpuRuntime)
pub fn recycle(self, runtime: &WgpuRuntime)
Returns this output buffer to the runtime storage pool.
Sourcepub fn readback(&self, runtime: &WgpuRuntime) -> SpatialResult<Vec<GpuNormal>>
pub fn readback(&self, runtime: &WgpuRuntime) -> SpatialResult<Vec<GpuNormal>>
Reads normal and curvature records back to the CPU.
Auto Trait Implementations§
impl Freeze for GpuAoSoNormals
impl !RefUnwindSafe for GpuAoSoNormals
impl Send for GpuAoSoNormals
impl Sync for GpuAoSoNormals
impl Unpin for GpuAoSoNormals
impl UnsafeUnpin for GpuAoSoNormals
impl !UnwindSafe for GpuAoSoNormals
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