MDLMeshBufferDataAllocator.CreateBuffer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- type
- MDLMeshBufferType
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
- type
- MDLMeshBufferType
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
- zone
- IMDLMeshBufferZone
- data
- NSData
- type
- MDLMeshBufferType
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
- zone
- IMDLMeshBufferZone
- length
-
UIntPtr
unativeint
- type
- MDLMeshBufferType
Returns
Implements
- Attributes