pub enum SurfaceType {
Opengl {
window_id: u32,
},
Direct3D9 {
window_id: u32,
},
Direct3D11 {
window_id: Option<u32>,
},
Direct3D12 {
window_id: Option<u32>,
},
Vulkan {
window_id: u32,
},
}Expand description
Describes the render api used by a surface.
Variants§
Opengl
Surface is OpenGL default framebuffer.
Direct3D9
Surface is Direct3D9 swapchain.
Direct3D11
Surface is Direct3D11 swapchain.
Fields
Direct3D12
Surface is Direct3D12 swapchain.
Fields
Vulkan
Surface is Vulkan win32 surface.
Implementations§
Trait Implementations§
Source§impl Clone for SurfaceType
impl Clone for SurfaceType
Source§fn clone(&self) -> SurfaceType
fn clone(&self) -> SurfaceType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SurfaceType
Source§impl Debug for SurfaceType
impl Debug for SurfaceType
impl Eq for SurfaceType
Source§impl Hash for SurfaceType
impl Hash for SurfaceType
Source§impl PartialEq for SurfaceType
impl PartialEq for SurfaceType
impl StructuralPartialEq for SurfaceType
Auto Trait Implementations§
impl Freeze for SurfaceType
impl RefUnwindSafe for SurfaceType
impl Send for SurfaceType
impl Sync for SurfaceType
impl Unpin for SurfaceType
impl UnsafeUnpin for SurfaceType
impl UnwindSafe for SurfaceType
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