MTKMeshBufferAllocator.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
CreateBuffer(NSData, MDLMeshBufferType) |
Creates and returns a mesh buffer with the provided |
CreateBuffer(nuint, MDLMeshBufferType) | |
CreateBuffer(IMDLMeshBufferZone, NSData, MDLMeshBufferType) |
Creates and returns a mesh buffer with the provided |
CreateBuffer(IMDLMeshBufferZone, nuint, MDLMeshBufferType) |
CreateBuffer(NSData, MDLMeshBufferType)
Creates and returns a mesh buffer with the provided data
and type
.
[Foundation.Export("newBufferWithData:type:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual ModelIO.IMDLMeshBuffer CreateBuffer (Foundation.NSData data, ModelIO.MDLMeshBufferType type);
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(nuint, MDLMeshBufferType)
[Foundation.Export("newBuffer:type:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual ModelIO.IMDLMeshBuffer CreateBuffer (nuint length, ModelIO.MDLMeshBufferType type);
abstract member CreateBuffer : nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
override this.CreateBuffer : nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
Parameters
- length
- System.System.UIntPtr System.unativeint
- type
- MDLMeshBufferType
Returns
Implements
- Attributes
Applies to
CreateBuffer(IMDLMeshBufferZone, NSData, MDLMeshBufferType)
Creates and returns a mesh buffer with the provided zone
, data
, and type
.
[Foundation.Export("newBufferFromZone:data:type:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual ModelIO.IMDLMeshBuffer CreateBuffer (ModelIO.IMDLMeshBufferZone zone, Foundation.NSData data, ModelIO.MDLMeshBufferType type);
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, nuint, MDLMeshBufferType)
[Foundation.Export("newBufferFromZone:length:type:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual ModelIO.IMDLMeshBuffer CreateBuffer (ModelIO.IMDLMeshBufferZone zone, nuint length, ModelIO.MDLMeshBufferType type);
abstract member CreateBuffer : ModelIO.IMDLMeshBufferZone * nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
override this.CreateBuffer : ModelIO.IMDLMeshBufferZone * nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBuffer
Parameters
- zone
- IMDLMeshBufferZone
- length
- System.System.UIntPtr System.unativeint
- type
- MDLMeshBufferType
Returns
Implements
- Attributes