pub struct Surface {
pub vulkan: Option<<Vulkan as Api>::Surface>,
pub gl: Option<<Gles as Api>::Surface>,
/* private fields */
}
Fields§
§vulkan: Option<<Vulkan as Api>::Surface>
Available on
§vulkan
only.gl: Option<<Gles as Api>::Surface>
Available on
gles
only.Implementations§
source§impl Surface
impl Surface
pub fn get_capabilities<A: HalApi>( &self, adapter: &Adapter<A>, ) -> Result<SurfaceCapabilities, GetSurfaceSupportError>
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