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
傳回
實作
- 屬性