pub struct WgpuRuntime<C: WgpuCompiler = WgslCompiler>(/* private fields */);
Expand description
Trait Implementations§
Source§impl<C: Debug + WgpuCompiler> Debug for WgpuRuntime<C>
impl<C: Debug + WgpuCompiler> Debug for WgpuRuntime<C>
Source§impl Runtime for WgpuRuntime<WgslCompiler>
impl Runtime for WgpuRuntime<WgslCompiler>
Source§type Compiler = WgslCompiler
type Compiler = WgslCompiler
The compiler used to compile the inner representation into tokens.
Source§type Server = WgpuServer<WgslCompiler>
type Server = WgpuServer<WgslCompiler>
The compute server used to run kernels and perform autotuning.
Source§type Channel = MutexComputeChannel<WgpuServer<WgslCompiler>>
type Channel = MutexComputeChannel<WgpuServer<WgslCompiler>>
The channel used to communicate with the compute server.
Source§type Device = WgpuDevice
type Device = WgpuDevice
The device used to retrieve the compute client.
Source§fn client(device: &Self::Device) -> ComputeClient<Self::Server, Self::Channel>
fn client(device: &Self::Device) -> ComputeClient<Self::Server, Self::Channel>
Retrieve the compute client from the runtime device.
Source§fn supported_line_sizes() -> &'static [u8] ⓘ
fn supported_line_sizes() -> &'static [u8] ⓘ
Returns the supported line sizes for the current runtime’s compiler.
Source§fn require_array_lengths() -> bool
fn require_array_lengths() -> bool
Return true if global input array lengths should be added to kernel info.
Auto Trait Implementations§
impl<C> Freeze for WgpuRuntime<C>
impl<C> RefUnwindSafe for WgpuRuntime<C>where
C: RefUnwindSafe,
impl<C> Send for WgpuRuntime<C>
impl<C> Sync for WgpuRuntime<C>
impl<C> Unpin for WgpuRuntime<C>where
C: Unpin,
impl<C> UnwindSafe for WgpuRuntime<C>where
C: UnwindSafe,
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