MDLAssetSCNModelIO

Trait MDLAssetSCNModelIO 

Source
pub unsafe trait MDLAssetSCNModelIO:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn assetWithSCNScene(scn_scene: &SCNScene) -> Retained<Self> { ... }
    unsafe fn assetWithSCNScene_bufferAllocator(
        scn_scene: &SCNScene,
        buffer_allocator: Option<&ProtocolObject<dyn MDLMeshBufferAllocator>>,
    ) -> Retained<Self> { ... }
}
Available on crate feature ModelIO only.
Expand description

Category “SCNModelIO” on MDLAsset.

Provided Methods§

Source

unsafe fn assetWithSCNScene(scn_scene: &SCNScene) -> Retained<Self>

Available on crate feature SCNScene only.
Source

unsafe fn assetWithSCNScene_bufferAllocator( scn_scene: &SCNScene, buffer_allocator: Option<&ProtocolObject<dyn MDLMeshBufferAllocator>>, ) -> Retained<Self>

Available on crate feature SCNScene and crate feature objc2-model-io and non-watchOS only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MDLAssetSCNModelIO for MDLAsset

Available on crate feature objc2-model-io and non-watchOS only.

Implementors§