pub struct ContextWgpuCore(Arc<Instance>);Available on
wgpu_core only.Tuple Fields§
§0: Arc<Instance>Implementations§
Source§impl ContextWgpuCore
impl ContextWgpuCore
pub unsafe fn from_hal_instance<A: Api>(hal_instance: A::Instance) -> Self
Sourcepub unsafe fn instance_as_hal<A: Api>(&self) -> Option<&A::Instance>
pub unsafe fn instance_as_hal<A: Api>(&self) -> Option<&A::Instance>
§Safety
- The raw instance handle returned must not be manually destroyed.
pub fn from_core_instance(core_instance: Arc<Instance>) -> Self
pub fn enumerate_adapters(&self, backends: Backends) -> Vec<Arc<Adapter>>
pub unsafe fn create_adapter_from_hal<A: Api>( &self, hal_adapter: ExposedAdapter<A>, ) -> Arc<Adapter>
Trait Implementations§
Source§impl Clone for ContextWgpuCore
impl Clone for ContextWgpuCore
Source§fn clone(&self) -> ContextWgpuCore
fn clone(&self) -> ContextWgpuCore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextWgpuCore
impl Debug for ContextWgpuCore
Source§impl From<ContextWgpuCore> for DispatchInstance
impl From<ContextWgpuCore> for DispatchInstance
Source§fn from(value: ContextWgpuCore) -> Self
fn from(value: ContextWgpuCore) -> Self
Converts to this type from the input type.
Source§impl Hash for ContextWgpuCore
impl Hash for ContextWgpuCore
Source§impl InstanceInterface for ContextWgpuCore
impl InstanceInterface for ContextWgpuCore
fn new(desc: InstanceDescriptor) -> Selfwhere
Self: Sized,
unsafe fn create_surface( &self, target: SurfaceTargetUnsafe, ) -> Result<DispatchSurface, CreateSurfaceError>
fn request_adapter( &self, options: &RequestAdapterOptions<'_, '_>, ) -> Pin<Box<dyn RequestAdapterFuture>>
fn poll_all_devices(&self, force_wait: bool) -> bool
Source§fn wgsl_language_features(&self) -> WgslLanguageFeatures
fn wgsl_language_features(&self) -> WgslLanguageFeatures
Available on crate feature
wgsl only.fn enumerate_adapters( &self, backends: Backends, ) -> Pin<Box<dyn EnumerateAdapterFuture>>
Source§impl Ord for ContextWgpuCore
impl Ord for ContextWgpuCore
Source§impl PartialEq for ContextWgpuCore
impl PartialEq for ContextWgpuCore
Source§impl PartialOrd for ContextWgpuCore
impl PartialOrd for ContextWgpuCore
impl Eq for ContextWgpuCore
Auto Trait Implementations§
impl Freeze for ContextWgpuCore
impl !RefUnwindSafe for ContextWgpuCore
impl Send for ContextWgpuCore
impl Sync for ContextWgpuCore
impl Unpin for ContextWgpuCore
impl !UnwindSafe for ContextWgpuCore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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