#[non_exhaustive]#[repr(u32)]pub enum retro_hw_context_type {
RETRO_HW_CONTEXT_NONE = 0,
RETRO_HW_CONTEXT_OPENGL = 1,
RETRO_HW_CONTEXT_OPENGLES2 = 2,
RETRO_HW_CONTEXT_OPENGL_CORE = 3,
RETRO_HW_CONTEXT_OPENGLES3 = 4,
RETRO_HW_CONTEXT_OPENGLES_VERSION = 5,
RETRO_HW_CONTEXT_VULKAN = 6,
RETRO_HW_CONTEXT_DIRECT3D = 7,
RETRO_HW_CONTEXT_DUMMY = 2_147_483_647,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RETRO_HW_CONTEXT_NONE = 0
RETRO_HW_CONTEXT_OPENGL = 1
OpenGL 2.x. Driver can choose to use latest compatibility context.
RETRO_HW_CONTEXT_OPENGLES2 = 2
OpenGL ES 2.0.
RETRO_HW_CONTEXT_OPENGL_CORE = 3
Modern desktop core GL context. Use version_major/ version_minor fields to set GL version.
RETRO_HW_CONTEXT_OPENGLES3 = 4
OpenGL ES 3.0
RETRO_HW_CONTEXT_OPENGLES_VERSION = 5
OpenGL ES 3.1+. Set version_major/version_minor. For GLES2 and GLES3, use the corresponding enums directly.
RETRO_HW_CONTEXT_VULKAN = 6
Vulkan, see RETRO_ENVIRONMENT_GET_HW_RENDER_INTERFACE.
RETRO_HW_CONTEXT_DIRECT3D = 7
Direct3D, set version_major to select the type of interface returned by RETRO_ENVIRONMENT_GET_HW_RENDER_INTERFACE
RETRO_HW_CONTEXT_DUMMY = 2_147_483_647
Direct3D, set version_major to select the type of interface returned by RETRO_ENVIRONMENT_GET_HW_RENDER_INTERFACE
Trait Implementations§
Source§impl Clone for retro_hw_context_type
impl Clone for retro_hw_context_type
Source§fn clone(&self) -> retro_hw_context_type
fn clone(&self) -> retro_hw_context_type
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for retro_hw_context_type
impl Debug for retro_hw_context_type
Source§impl Hash for retro_hw_context_type
impl Hash for retro_hw_context_type
Source§impl PartialEq for retro_hw_context_type
impl PartialEq for retro_hw_context_type
impl Copy for retro_hw_context_type
impl Eq for retro_hw_context_type
impl StructuralPartialEq for retro_hw_context_type
Auto Trait Implementations§
impl Freeze for retro_hw_context_type
impl RefUnwindSafe for retro_hw_context_type
impl Send for retro_hw_context_type
impl Sync for retro_hw_context_type
impl Unpin for retro_hw_context_type
impl UnwindSafe for retro_hw_context_type
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