pub trait SpatialRuntime {
// Required method
fn device_kind(&self) -> DeviceKind;
// Provided method
fn supports_policy(&self, policy: ExecutionPolicy) -> bool { ... }
}Expand description
Runtime boundary for executing spatial algorithms on one backend.
The trait intentionally exposes only backend identity and policy compatibility. Backend-specific queues, buffers, and transfer operations belong in the crate that implements the runtime.
Required Methods§
Sourcefn device_kind(&self) -> DeviceKind
fn device_kind(&self) -> DeviceKind
Returns the device kind owned by this runtime.
Provided Methods§
Sourcefn supports_policy(&self, policy: ExecutionPolicy) -> bool
fn supports_policy(&self, policy: ExecutionPolicy) -> bool
Returns whether this runtime can satisfy the requested policy.
Implementations on Foreign Types§
Source§impl SpatialRuntime for WgpuRuntime
Available on crate feature gpu-wgpu only.
impl SpatialRuntime for WgpuRuntime
Available on crate feature
gpu-wgpu only.