MTKMeshBufferAllocator.CreateBuffer 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateBuffer(NSData, MDLMeshBufferType) |
使用提供的 |
CreateBuffer(nuint, MDLMeshBufferType) | |
CreateBuffer(IMDLMeshBufferZone, NSData, MDLMeshBufferType) |
创建并返回具有提供的 |
CreateBuffer(IMDLMeshBufferZone, nuint, MDLMeshBufferType) |
CreateBuffer(NSData, MDLMeshBufferType)
使用提供的 data
和 type
创建并返回网格缓冲区。
[Foundation.Export("newBufferWithData:type:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual ModelIO.IMDLMeshBuffer CreateBuffer (Foundation.NSData data, ModelIO.MDLMeshBufferType type);
abstract member CreateBuffer : Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
override this.CreateBuffer : Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
参数
- data
- NSData
- type
- MDLMeshBufferType
返回
实现
- 属性
适用于
CreateBuffer(nuint, MDLMeshBufferType)
[Foundation.Export("newBuffer:type:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual ModelIO.IMDLMeshBuffer CreateBuffer (nuint length, ModelIO.MDLMeshBufferType type);
abstract member CreateBuffer : nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
override this.CreateBuffer : nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
参数
- length
- System.System.UIntPtr System.unativeint
- type
- MDLMeshBufferType
返回
实现
- 属性
适用于
CreateBuffer(IMDLMeshBufferZone, NSData, MDLMeshBufferType)
创建并返回具有提供的 zone
、 data
和 type
的网格缓冲区。
[Foundation.Export("newBufferFromZone:data:type:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual ModelIO.IMDLMeshBuffer CreateBuffer (ModelIO.IMDLMeshBufferZone zone, Foundation.NSData data, ModelIO.MDLMeshBufferType type);
abstract member CreateBuffer : ModelIO.IMDLMeshBufferZone * Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
override this.CreateBuffer : ModelIO.IMDLMeshBufferZone * Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
参数
- zone
- IMDLMeshBufferZone
- data
- NSData
- type
- MDLMeshBufferType
返回
实现
- 属性
适用于
CreateBuffer(IMDLMeshBufferZone, nuint, MDLMeshBufferType)
[Foundation.Export("newBufferFromZone:length:type:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual ModelIO.IMDLMeshBuffer CreateBuffer (ModelIO.IMDLMeshBufferZone zone, nuint length, ModelIO.MDLMeshBufferType type);
abstract member CreateBuffer : ModelIO.IMDLMeshBufferZone * nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
override this.CreateBuffer : ModelIO.IMDLMeshBufferZone * nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
参数
- zone
- IMDLMeshBufferZone
- length
- System.System.UIntPtr System.unativeint
- type
- MDLMeshBufferType
返回
实现
- 属性