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
sourceimpl Surface
impl Surface
pub fn get_supported_formats<A: HalApi>(
&self,
adapter: &Adapter<A>
) -> Result<Vec<TextureFormat>, GetSurfaceSupportError>
pub fn get_supported_modes<A: HalApi>(
&self,
adapter: &Adapter<A>
) -> Result<Vec<PresentMode>, 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 !RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl !UnwindSafe for Surface
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more