Share via


IMTLDevice.CreateBuffer Method

Definition

Overloads

CreateBuffer(UIntPtr, MTLResourceOptions, MTLSparsePageSize)

[Foundation.Export("newBufferWithLength:options:placementSparsePageSize:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLBuffer? CreateBuffer(UIntPtr length, Metal.MTLResourceOptions options, Metal.MTLSparsePageSize placementSparsePageSize);
[<Foundation.Export("newBufferWithLength:options:placementSparsePageSize:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateBuffer : unativeint * Metal.MTLResourceOptions * Metal.MTLSparsePageSize -> Metal.IMTLBuffer
override this.CreateBuffer : unativeint * Metal.MTLResourceOptions * Metal.MTLSparsePageSize -> Metal.IMTLBuffer

Parameters

length
UIntPtr

unativeint

placementSparsePageSize
MTLSparsePageSize

Returns

Attributes

Applies to

CreateBuffer(IntPtr, UIntPtr, MTLResourceOptions)

[Foundation.Export("newBufferWithBytes:length:options:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLBuffer? CreateBuffer(IntPtr pointer, UIntPtr length, Metal.MTLResourceOptions options);
[<Foundation.Export("newBufferWithBytes:length:options:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateBuffer : nativeint * unativeint * Metal.MTLResourceOptions -> Metal.IMTLBuffer
override this.CreateBuffer : nativeint * unativeint * Metal.MTLResourceOptions -> Metal.IMTLBuffer

Parameters

pointer
IntPtr

nativeint

length
UIntPtr

unativeint

Returns

Attributes

Applies to

CreateBuffer(UIntPtr, MTLResourceOptions)

[Foundation.Export("newBufferWithLength:options:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLBuffer? CreateBuffer(UIntPtr length, Metal.MTLResourceOptions options);
[<Foundation.Export("newBufferWithLength:options:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateBuffer : unativeint * Metal.MTLResourceOptions -> Metal.IMTLBuffer
override this.CreateBuffer : unativeint * Metal.MTLResourceOptions -> Metal.IMTLBuffer

Parameters

length
UIntPtr

unativeint

Returns

Attributes

Applies to