pub struct Surface(/* private fields */);Expand description
a window as a target for swapchains
Implementations§
Source§impl Surface
impl Surface
Sourcepub fn new(instance: &Instance, window: i32) -> Result<Surface>
pub fn new(instance: &Instance, window: i32) -> Result<Surface>
the surface of plat window window
Sourcepub fn native(
_instance: &Instance,
nw: NativeWindow,
window: i32,
) -> Result<Surface>
pub fn native( _instance: &Instance, nw: NativeWindow, window: i32, ) -> Result<Surface>
the surface from what plat::win_gpu_child said about plat window window (any thread)
Sourcepub fn track_size(&self)
pub fn track_size(&self)
(the window loop’s thread) the window’s size now: what a rebuild on a worker makes
Trait Implementations§
Auto Trait Implementations§
impl Forget for Surface
impl Freeze for Surface
impl RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnsafeUnpin for Surface
impl UnwindSafe for Surface
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