MDLSubmeshSCNModelIO

Trait MDLSubmeshSCNModelIO 

Source
pub unsafe trait MDLSubmeshSCNModelIO:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn submeshWithSCNGeometryElement(
        scn_geometry_element: &SCNGeometryElement,
    ) -> Retained<Self> { ... }
    unsafe fn submeshWithSCNGeometryElement_bufferAllocator(
        scn_geometry_element: &SCNGeometryElement,
        buffer_allocator: Option<&ProtocolObject<dyn MDLMeshBufferAllocator>>,
    ) -> Retained<Self> { ... }
}
Available on crate feature ModelIO only.
Expand description

Category “SCNModelIO” on MDLSubmesh.

Provided Methods§

Source

unsafe fn submeshWithSCNGeometryElement( scn_geometry_element: &SCNGeometryElement, ) -> Retained<Self>

Available on crate feature SCNGeometry only.
Source

unsafe fn submeshWithSCNGeometryElement_bufferAllocator( scn_geometry_element: &SCNGeometryElement, buffer_allocator: Option<&ProtocolObject<dyn MDLMeshBufferAllocator>>, ) -> Retained<Self>

Available on crate feature SCNGeometry 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 MDLSubmeshSCNModelIO for MDLSubmesh

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

Implementors§