public static DeviceModelCollection ConvertToDevice(Assimp.Scene srcScene, DeviceMeshFactory meshFactory) { if (meshFactory == null) { throw new ArgumentNullException(); } var content = ConvertToContent(srcScene); return(DeviceModelCollection.CreateFrom(content, meshFactory.CreateMeshCollection)); }
public DeviceModelCollection ConvertToDevice(SharpGLTF.Schema2.ModelRoot srcModel, DeviceMeshFactory meshFactory) { if (meshFactory == null) { throw new ArgumentNullException(); } var content = ConvertToContent(srcModel); return(DeviceModelCollection.CreateFrom(content, meshFactory.CreateMeshCollection)); }