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

返回

属性

适用于