Share via


MTLTextureUsage Enum

Definition

Enumerates the ways in which a IMTLTexture may be used.

This enumeration supports a bitwise combination of its member values.

[ObjCRuntime.Native]
[System.Flags]
public enum MTLTextureUsage
[<ObjCRuntime.Native>]
[<System.Flags>]
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.

PixelFormatView 16

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

ShaderAtomic 32

Applies to