GLKMesh.FromAsset(MDLAsset, 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 GLKit meshes from the meshes in a Model I/O asset.
public static GLKit.GLKMesh[]? FromAsset(ModelIO.MDLAsset asset, out ModelIO.MDLMesh[] sourceMeshes, out Foundation.NSError error);
public static GLKit.GLKMesh[]? FromAsset(ModelIO.MDLAsset asset, out ModelIO.MDLMesh[]? sourceMeshes, out Foundation.NSError? error);
static member FromAsset : ModelIO.MDLAsset * MDLMesh[] * NSError -> GLKit.GLKMesh[]
Parameters
- asset
- MDLAsset
The asset containing the source meshes.
- sourceMeshes
- MDLMesh[]
The Model I/O meshes corresponding to the returned GLKit meshes.
- error
- NSError
On failure, contains an error that describes the problem.
Returns
The created GLKit meshes, or null if they could not be created.