#[repr(transparent)]pub struct SCNRenderingAPI(pub NSUInteger);Available on crate feature
SCNSceneRenderer only.Expand description
rendering API used by SCNView and SCNRenderer.
Default preferred API is SCNRenderingAPIMetal on iOS and it depends on the configuration on macOS. If Metal is requested but not available then it fallbacks to SCNRenderingAPIOpenGLES2 on iOS and to SCNRenderingAPIOpenGLLegacy on macOS.
See also Apple’s documentation
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl SCNRenderingAPI
impl SCNRenderingAPI
pub const Metal: Self
pub const OpenGLLegacy: Self
pub const OpenGLCore32: Self
pub const OpenGLCore41: Self
Trait Implementations§
Source§impl Clone for SCNRenderingAPI
impl Clone for SCNRenderingAPI
Source§fn clone(&self) -> SCNRenderingAPI
fn clone(&self) -> SCNRenderingAPI
Returns a copy 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 SCNRenderingAPI
impl Debug for SCNRenderingAPI
Source§impl Encode for SCNRenderingAPI
impl Encode for SCNRenderingAPI
Source§impl Hash for SCNRenderingAPI
impl Hash for SCNRenderingAPI
Source§impl Ord for SCNRenderingAPI
impl Ord for SCNRenderingAPI
Source§fn cmp(&self, other: &SCNRenderingAPI) -> Ordering
fn cmp(&self, other: &SCNRenderingAPI) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SCNRenderingAPI
impl PartialEq for SCNRenderingAPI
Source§impl PartialOrd for SCNRenderingAPI
impl PartialOrd for SCNRenderingAPI
Source§impl RefEncode for SCNRenderingAPI
impl RefEncode for SCNRenderingAPI
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for SCNRenderingAPI
impl Eq for SCNRenderingAPI
impl StructuralPartialEq for SCNRenderingAPI
Auto Trait Implementations§
impl Freeze for SCNRenderingAPI
impl RefUnwindSafe for SCNRenderingAPI
impl Send for SCNRenderingAPI
impl Sync for SCNRenderingAPI
impl Unpin for SCNRenderingAPI
impl UnwindSafe for SCNRenderingAPI
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.