共用方式為


MTLTextureDescriptor.CreateTextureBufferDescriptor 方法

定義

[Foundation.Export("textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static Metal.MTLTextureDescriptor CreateTextureBufferDescriptor (Metal.MTLPixelFormat pixelFormat, nuint width, Metal.MTLResourceOptions resourceOptions, Metal.MTLTextureUsage usage);
static member CreateTextureBufferDescriptor : Metal.MTLPixelFormat * nuint * Metal.MTLResourceOptions * Metal.MTLTextureUsage -> Metal.MTLTextureDescriptor

參數

pixelFormat
MTLPixelFormat
width
System.System.UIntPtr System.unativeint
resourceOptions
MTLResourceOptions

傳回

屬性

適用於