MTKMesh.FromAsset(MDLAsset, IMTLDevice, MDLMesh[], NSError) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and returns a new Metal Kit mesh from the supplied Model IO asset.
public static MetalKit.MTKMesh[] FromAsset (ModelIO.MDLAsset asset, Metal.IMTLDevice device, out ModelIO.MDLMesh[] sourceMeshes, out Foundation.NSError error);
static member FromAsset : ModelIO.MDLAsset * Metal.IMTLDevice * * -> MetalKit.MTKMesh[]
Parameters
- asset
- MDLAsset
- device
- IMTLDevice
- sourceMeshes
- MDLMesh[]
- error
- NSError
Returns
MTKMesh[]