編輯

共用方式為


MTKMeshBufferAllocator.CreateZone Method

Definition

Overloads

CreateZone(nuint)

Creates and returns a new mesh buffer zone with the specified capacity.

CreateZone(NSNumber[], NSNumber[])

Creates and returns a new mesh buffer zone for meshes of the corresponding sizes and types.

CreateZone(nuint)

Creates and returns a new mesh buffer zone with the specified capacity.

[Foundation.Export("newZone:")]
[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.IMDLMeshBufferZone CreateZone (nuint capacity);
abstract member CreateZone : nuint -> ModelIO.IMDLMeshBufferZone
override this.CreateZone : nuint -> ModelIO.IMDLMeshBufferZone

Parameters

capacity
System.System.UIntPtr System.unativeint

Returns

Implements

Attributes

Applies to

CreateZone(NSNumber[], NSNumber[])

Creates and returns a new mesh buffer zone for meshes of the corresponding sizes and types.

[Foundation.Export("newZoneForBuffersWithSize:andType:")]
[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.IMDLMeshBufferZone CreateZone (Foundation.NSNumber[] sizes, Foundation.NSNumber[] types);
abstract member CreateZone : Foundation.NSNumber[] * Foundation.NSNumber[] -> ModelIO.IMDLMeshBufferZone
override this.CreateZone : Foundation.NSNumber[] * Foundation.NSNumber[] -> ModelIO.IMDLMeshBufferZone

Parameters

sizes
NSNumber[]
types
NSNumber[]

Returns

Implements

Attributes

Applies to