pub struct SharedGpuContext {
pub device: Device,
pub queue: Queue,
pub instance: Instance,
pub adapter: Adapter,
pub adapter_caps: GpuAdapterCaps,
pub enabled_features: GpuFeatureCaps,
pub timestamps_supported: bool,
pub timestamp_period_ns: f32,
}Fields§
§device: Device§queue: Queue§instance: InstanceThe wgpu instance — needed to create surfaces (must be same instance as adapter).
adapter: AdapterThe wgpu adapter — needed to create surfaces and query capabilities.
adapter_caps: GpuAdapterCapsImmutable adapter capability snapshot for diagnostics and feature negotiation.
enabled_features: GpuFeatureCapsFeature subset actually requested on the process-wide device.
timestamps_supported: boolWhether TIMESTAMP_QUERY was negotiated on this device (adapter-dependent).
When false, the LLM GPU profiler degrades to a no-op (CPU wall-clock only).
timestamp_period_ns: f32Nanoseconds per timestamp tick (Queue::get_timestamp_period); 0.0 when unsupported.
Implementations§
Sourcepub fn queue_for_lane(&self, lane: QueueLane) -> &Queue
pub fn queue_for_lane(&self, lane: QueueLane) -> &Queue
Logical queue lane for universe-tagged dispatch (B2.3).
Single physical wgpu::Queue today; lane tags preserve driver scheduling intent.
pub fn queue_for_universe(&self, universe: ComputeUniverse) -> &Queue
Auto Trait Implementations§
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more