pub struct SharedGpuContext {
pub provider_lease: DeviceLease,
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§
§provider_lease: DeviceLease§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 etalon::Queue today; lane tags preserve driver scheduling intent.
Sourcepub fn queue_for_universe(&self, universe: ComputeUniverse) -> &Queue
pub fn queue_for_universe(&self, universe: ComputeUniverse) -> &Queue
Queue for universe’s default lane — same physical queue;
universe tagging is intent metadata today.
Sourcepub fn create_etalon_hal_lane(&self) -> HalComputeLane
pub fn create_etalon_hal_lane(&self) -> HalComputeLane
Create an Etalon HAL compute lane borrowing this device and queue.
Sourcepub fn create_etalon_slab_allocator(
&self,
capacity_bytes: u64,
label: &str,
) -> QualiaSlabAllocator
pub fn create_etalon_slab_allocator( &self, capacity_bytes: u64, label: &str, ) -> QualiaSlabAllocator
Create an Etalon ring-slab allocator with the requested capacity.
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>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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