IMTLDevice.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(UIntPtr, MTLResourceOptions, MTLSparsePageSize) | |
| CreateBuffer(IntPtr, UIntPtr, MTLResourceOptions) | |
| CreateBuffer(UIntPtr, MTLResourceOptions) |
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
- options
- MTLResourceOptions
- 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
- options
- MTLResourceOptions
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
- options
- MTLResourceOptions
Returns
- Attributes