Share via


MDLMeshBufferDataAllocator.CreateBuffer Method

Definition

Overloads

Name Description
CreateBuffer(NSData, MDLMeshBufferType)

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

CreateBuffer(UIntPtr, MDLMeshBufferType)
CreateBuffer(IMDLMeshBufferZone, NSData, MDLMeshBufferType)

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

CreateBuffer(IMDLMeshBufferZone, UIntPtr, 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:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual ModelIO.IMDLMeshBuffer CreateBuffer(Foundation.NSData data, ModelIO.MDLMeshBufferType type);
[<Foundation.Export("newBufferWithData:type:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateBuffer : Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
override this.CreateBuffer : Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer

Parameters

data
NSData

Returns

Implements

Attributes

Applies to

CreateBuffer(UIntPtr, MDLMeshBufferType)

[Foundation.Export("newBuffer:type:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual ModelIO.IMDLMeshBuffer CreateBuffer(UIntPtr length, ModelIO.MDLMeshBufferType type);
[<Foundation.Export("newBuffer:type:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateBuffer : unativeint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
override this.CreateBuffer : unativeint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer

Parameters

length
UIntPtr

unativeint

Returns

Implements

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:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual ModelIO.IMDLMeshBuffer? CreateBuffer(ModelIO.IMDLMeshBufferZone? zone, Foundation.NSData data, ModelIO.MDLMeshBufferType type);
[<Foundation.Export("newBufferFromZone:data:type:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateBuffer : ModelIO.IMDLMeshBufferZone * Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
override this.CreateBuffer : ModelIO.IMDLMeshBufferZone * Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer

Parameters

data
NSData

Returns

Implements

Attributes

Applies to

CreateBuffer(IMDLMeshBufferZone, UIntPtr, MDLMeshBufferType)

[Foundation.Export("newBufferFromZone:length:type:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual ModelIO.IMDLMeshBuffer? CreateBuffer(ModelIO.IMDLMeshBufferZone? zone, UIntPtr length, ModelIO.MDLMeshBufferType type);
[<Foundation.Export("newBufferFromZone:length:type:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateBuffer : ModelIO.IMDLMeshBufferZone * unativeint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
override this.CreateBuffer : ModelIO.IMDLMeshBufferZone * unativeint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer

Parameters

length
UIntPtr

unativeint

Returns

Implements

Attributes

Applies to