共用方式為


IMDLMeshBufferAllocator.CreateBuffer 方法

定義

多載

CreateBuffer(NSData, MDLMeshBufferType)

在實作工具的預設區域中,從指定型別的指定資料建立新的緩衝區。

CreateBuffer(nuint, MDLMeshBufferType)
CreateBuffer(IMDLMeshBufferZone, NSData, MDLMeshBufferType)

在指定的區域中,從指定型別的指定資料建立新的緩衝區。

CreateBuffer(IMDLMeshBufferZone, nuint, MDLMeshBufferType)

CreateBuffer(NSData, MDLMeshBufferType)

在實作工具的預設區域中,從指定型別的指定資料建立新的緩衝區。

[Foundation.Export("newBufferWithData:type:")]
[Foundation.Preserve(Conditional=true)]
public ModelIO.IMDLMeshBuffer CreateBuffer (Foundation.NSData data, ModelIO.MDLMeshBufferType type);
abstract member CreateBuffer : Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer

參數

data
NSData

傳回

屬性

適用於

CreateBuffer(nuint, MDLMeshBufferType)

[Foundation.Export("newBuffer:type:")]
[Foundation.Preserve(Conditional=true)]
public ModelIO.IMDLMeshBuffer CreateBuffer (nuint length, ModelIO.MDLMeshBufferType type);
abstract member CreateBuffer : nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer

參數

length
System.System.UIntPtr System.unativeint

傳回

屬性

適用於

CreateBuffer(IMDLMeshBufferZone, NSData, MDLMeshBufferType)

在指定的區域中,從指定型別的指定資料建立新的緩衝區。

[Foundation.Export("newBufferFromZone:data:type:")]
[Foundation.Preserve(Conditional=true)]
public ModelIO.IMDLMeshBuffer CreateBuffer (ModelIO.IMDLMeshBufferZone zone, Foundation.NSData data, ModelIO.MDLMeshBufferType type);
abstract member CreateBuffer : ModelIO.IMDLMeshBufferZone * Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer

參數

data
NSData

傳回

屬性

適用於

CreateBuffer(IMDLMeshBufferZone, nuint, MDLMeshBufferType)

[Foundation.Export("newBufferFromZone:length:type:")]
[Foundation.Preserve(Conditional=true)]
public ModelIO.IMDLMeshBuffer CreateBuffer (ModelIO.IMDLMeshBufferZone zone, nuint length, ModelIO.MDLMeshBufferType type);
abstract member CreateBuffer : ModelIO.IMDLMeshBufferZone * nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer

參數

length
System.System.UIntPtr System.unativeint

傳回

屬性

適用於