pub struct DeviceRandomVarList { /* private fields */ }Expand description
Device-resident random-variable list for GPU smoothing.
Implementations§
Source§impl DeviceRandomVarList
impl DeviceRandomVarList
Sourcepub fn from_device(list: TrackedCudaSlice<u32>, count: u32) -> Result<Self>
pub fn from_device(list: TrackedCudaSlice<u32>, count: u32) -> Result<Self>
Constructs a validated list from an existing device allocation and logical count.
Sourcepub fn from_host(provider: &CudaKernelProvider, host: &[u32]) -> Result<Self>
pub fn from_host(provider: &CudaKernelProvider, host: &[u32]) -> Result<Self>
Uploads a host list of random-variable identifiers.
Sourcepub fn list(&self) -> &TrackedCudaSlice<u32>
pub fn list(&self) -> &TrackedCudaSlice<u32>
Returns the device-resident variable identifiers.
Auto Trait Implementations§
impl Freeze for DeviceRandomVarList
impl RefUnwindSafe for DeviceRandomVarList
impl Send for DeviceRandomVarList
impl Sync for DeviceRandomVarList
impl Unpin for DeviceRandomVarList
impl UnsafeUnpin for DeviceRandomVarList
impl UnwindSafe for DeviceRandomVarList
Blanket Implementations§
impl<T> Allocation for T
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