Skip to content

ModelIO iOS xcode13.0 beta1

Manuel de la Pena edited this page Aug 5, 2021 · 3 revisions

#ModelIO.framework https://github.com/xamarin/xamarin-macios/pull/12349

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLAsset.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLAsset.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLAsset.h	2021-03-16 08:44:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLAsset.h	2021-06-02 05:35:15.000000000 -0400
@@ -274,12 +274,17 @@
  */
 - (MDLObject *)objectAtIndex:(NSUInteger)index;
 
+
+@property (nonatomic, retain) id<MDLObjectContainerComponent> masters
+API_DEPRECATED_WITH_REPLACEMENT("originals", ios(10.0,15.0), tvos(10.0,15.0), macos(10.12,12.0));
+
 /*!
- @property masters
- @abstract Master objects that can be instanced into the asset's object hierarchy
+ @property originals
+ @abstract Original objects that can be instanced into the asset's object hierarchy
  @see MDLObjectContainerComponent
  */
-@property (nonatomic, retain) id<MDLObjectContainerComponent> masters;
+@property (nonatomic, retain) id<MDLObjectContainerComponent> originals
+API_AVAILABLE(macos(12.0), tvos(15.0), ios(15.0));
 
 /*!
  @property animations
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLMaterial.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLMaterial.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLMaterial.h	2021-03-16 08:47:24.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLMaterial.h	2021-06-02 12:47:00.000000000 -0400
@@ -167,7 +167,8 @@
     MDLMaterialPropertyTypeFloat2,
     MDLMaterialPropertyTypeFloat3,
     MDLMaterialPropertyTypeFloat4,
-    MDLMaterialPropertyTypeMatrix44
+    MDLMaterialPropertyTypeMatrix44,
+    MDLMaterialPropertyTypeBuffer
 };
 
 /**
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLMeshBuffer.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLMeshBuffer.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLMeshBuffer.h	2021-03-16 13:56:23.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLMeshBuffer.h	2021-06-02 05:37:50.000000000 -0400
@@ -20,6 +20,7 @@
 typedef NS_ENUM(NSUInteger, MDLMeshBufferType) {
     MDLMeshBufferTypeVertex = 1,
     MDLMeshBufferTypeIndex = 2,
+    MDLMeshBufferTypeCustom = 3,
 };
 
 @protocol MDLMeshBuffer;
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLObject.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLObject.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLObject.h	2021-03-16 08:47:24.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLObject.h	2021-06-02 05:35:15.000000000 -0400
@@ -69,14 +69,14 @@
 /*!
  @property instance
  @abstract Instance object
- @discussion nil, unless this object refers to master data to be instanced. The
-             master data object can be any MDLObject that does not have a parent.
-             If an MDLAsset has been created from a data file, any master objects
-             parsed from that file will be found in the masters property.
-             A typical use of a master and instance might be to have one master
+ @discussion nil, unless this object refers to original data to be instanced. The
+             original data object can be any MDLObject that does not have a parent.
+             If an MDLAsset has been created from a data file, any original objects
+             parsed from that file will be found in the originals property.
+             A typical use of a original and instance might be to have one original
              chair MDLObject, and instance six chairs around a table. The
              transform of each chair would be found on the parent MDLObject, but
-             the various items making up the chair would be found in the master
+             the various items making up the chair would be found in the original
              object.
  */
 @property (nonatomic, nullable, retain) MDLObject* instance;
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLTypes.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLTypes.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLTypes.h	2021-03-16 08:47:24.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLTypes.h	2021-06-02 12:46:59.000000000 -0400
@@ -25,9 +25,12 @@
 /* Stereolithography file format, file extension STL, UTI public.standard-tesselated-geometry-format */
 MDL_EXPORT NSString * __nonnull const kUTTypeStereolithography API_AVAILABLE(macos(10.11), ios(9.0), tvos(9.0));
 
-/* Universal Scene Description file format, file extension USDA or USDB, UTI com.pixar.universal-scene-description */
+/* Universal Scene Description file format, file extension USDA or USDC, UTI com.pixar.universal-scene-description */
 MDL_EXPORT NSString * __nonnull const kUTTypeUniversalSceneDescription API_AVAILABLE(macos(10.12), ios(10.0), tvos(9.0));
 
+/* Universal Scene Description Mobile file format, file extension USDZ, UTI com.pixar.universal-scene-description-mobile */
+MDL_EXPORT NSString * __nonnull const kUTTypeUniversalSceneDescriptionMobile API_AVAILABLE(macos(11.0), ios(14.0), tvos(14.0)); 
+
 NS_ASSUME_NONNULL_BEGIN
 typedef NS_ENUM(NSUInteger, MDLIndexBitDepth)
 {
Clone this wiki locally