Editar

Compartir a través de


MTLTextureUsage Enum

Definition

Enumerates the ways in which a IMTLTexture may be used.

This enumeration supports a bitwise combination of its member values.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum MTLTextureUsage
type MTLTextureUsage = 
Inheritance
MTLTextureUsage
Attributes

Fields

Name Value Description
Unknown 0

A value that indicates that it is not known what the texture usage option is.

ShaderRead 1

A value that indicates that the texture will be read by shaders at any stage in rendering.

ShaderWrite 2

A value that indicates that the texture will be written to by compute shaders.

RenderTarget 4

A value that indicates that the texture will be used as a color, depth, or stencil render target in a rendering pass.

Blit 8

A value that indicates that the texture will be a target for blitting.

PixelFormatView 16

A value that indicates that the texture will be used for creating new textures.

Applies to