pub struct Surface {
pub vulkan: Option<HalSurface<Vulkan>>,
pub dx12: Option<HalSurface<Dx12>>,
pub dx11: Option<HalSurface<Dx11>>,
pub gl: Option<HalSurface<Gles>>,
/* private fields */
}
Fields§
§vulkan: Option<HalSurface<Vulkan>>
Available on crate feature
§vulkan
and non-WebAssembly only.dx12: Option<HalSurface<Dx12>>
Available on crate feature
§dx12
and Windows only.dx11: Option<HalSurface<Dx11>>
Available on crate feature
§dx11
and Windows only.gl: Option<HalSurface<Gles>>
Available on crate feature
gles
only.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 !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