MTLDevice_Extensions.GetMinimumLinearTextureAlignment Method

Definition

Gets the minimum alignment required for a linear texture in the given pixel format.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static nuint GetMinimumLinearTextureAlignment (this Metal.IMTLDevice This, Metal.MTLPixelFormat format);
static member GetMinimumLinearTextureAlignment : Metal.IMTLDevice * Metal.MTLPixelFormat -> nuint

Parameters

This
IMTLDevice

The instance on which this method operates.

format
MTLPixelFormat

The pixel format. Depth, stencil, and compressed formats are not supported.

Returns

System.System.UIntPtr System.unativeint
Attributes

Applies to