pub struct CoreSurface {
pub(crate) context: ContextWgpuCore,
id: SurfaceId,
configured_device: Mutex<Option<DeviceId>>,
error_sink: Mutex<Option<Arc<Mutex<ErrorSinkRaw>>>>,
}
Available on
wgpu_core
only.Fields§
§context: ContextWgpuCore
§id: SurfaceId
§configured_device: Mutex<Option<DeviceId>>
Configured device is needed to know which backend code to execute when acquiring a new frame.
error_sink: Mutex<Option<Arc<Mutex<ErrorSinkRaw>>>>
The error sink with which to report errors.
None
if the surface has not been configured.
Trait Implementations§
source§impl Debug for CoreSurface
impl Debug for CoreSurface
source§impl Drop for CoreSurface
impl Drop for CoreSurface
source§impl Hash for CoreSurface
impl Hash for CoreSurface
source§impl Ord for CoreSurface
impl Ord for CoreSurface
source§impl PartialEq for CoreSurface
impl PartialEq for CoreSurface
source§impl PartialOrd for CoreSurface
impl PartialOrd for CoreSurface
source§impl SurfaceInterface for CoreSurface
impl SurfaceInterface for CoreSurface
fn get_capabilities(&self, adapter: &DispatchAdapter) -> SurfaceCapabilities
fn configure(&self, device: &DispatchDevice, config: &SurfaceConfiguration)
fn get_current_texture( &self, ) -> (Option<DispatchTexture>, SurfaceStatus, DispatchSurfaceOutputDetail)
impl Eq for CoreSurface
Auto Trait Implementations§
impl !Freeze for CoreSurface
impl !RefUnwindSafe for CoreSurface
impl Send for CoreSurface
impl Sync for CoreSurface
impl Unpin for CoreSurface
impl !UnwindSafe for CoreSurface
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
§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.