pub struct Surface {
pub vulkan: Option<HalSurface<Vulkan>>,
pub gl: Option<HalSurface<Gles>>,
/* private fields */
}
Fields§
§vulkan: Option<HalSurface<Vulkan>>
§gl: Option<HalSurface<Gles>>
Implementations§
Source§impl Surface
impl Surface
pub fn get_capabilities<A: HalApi>( &self, adapter: &Adapter<A>, ) -> Result<SurfaceCapabilities, GetSurfaceSupportError>
Trait Implementations§
impl<A: HalApi> Access<Adapter<A>> for Surface
impl<A: HalApi> Access<Device<A>> for Surface
impl Access<Surface> for Instance
impl Access<Surface> for Root
Auto Trait Implementations§
impl Freeze for Surface
impl !RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin 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