pub struct Context {
pub adapter_info: AdapterInfo,
pub device: Device,
pub queue: Queue,
}Fields§
§adapter_info: AdapterInfo§device: Device§queue: QueueImplementations§
Source§impl Context
impl Context
Sourcepub async fn init() -> Result<Self, Error>
pub async fn init() -> Result<Self, Error>
Creates a context with the optional GPU features Lampshade can use safely.
Timestamp queries are not enabled by this convenience constructor on
Apple Metal or integrated NVIDIA Vulkan. Those paths have produced
incomplete timestamps or corrupted repeated compute dispatches.
Profiling methods consequently return Error::TimestampQueriesUnsupported
for this context instead of reporting misleading durations.
Auto Trait Implementations§
impl !RefUnwindSafe for Context
impl !UnwindSafe for Context
impl Freeze for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
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