Edit

Share via


IMDLMeshBufferAllocator.CreateBuffer Method

Definition

Overloads

CreateBuffer(NSData, MDLMeshBufferType)

Creates a new buffer from the specified data, of the specified type, in the default zone of the implementor.

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

Creates a new buffer from the specified data, of the specified type, in the specified zone.

CreateBuffer(IMDLMeshBufferZone, nuint, MDLMeshBufferType)

CreateBuffer(NSData, MDLMeshBufferType)

Creates a new buffer from the specified data, of the specified type, in the default zone of the implementor.

[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

Parameters

data
NSData

Returns

Attributes

Applies to

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

Parameters

length
System.System.UIntPtr System.unativeint

Returns

Attributes

Applies to

CreateBuffer(IMDLMeshBufferZone, NSData, MDLMeshBufferType)

Creates a new buffer from the specified data, of the specified type, in the specified zone.

[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

Parameters

data
NSData

Returns

Attributes

Applies to

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

Parameters

length
System.System.UIntPtr System.unativeint

Returns

Attributes

Applies to