pub struct Surface {
pub vulkan: Option<HalSurface<Vulkan>>,
pub dx12: Option<HalSurface<Dx12>>,
pub dx11: Option<HalSurface<Dx11>>,
/* private fields */
}
Fields
vulkan: Option<HalSurface<Vulkan>>
dx12: Option<HalSurface<Dx12>>
dx11: Option<HalSurface<Dx11>>
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