Edit

Share via


MTLResourceOptions Enum

Definition

Holds options used by buffer and texture objects.

This enumeration supports a bitwise combination of its member values.

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

Fields

Name Value Description
CpuCacheModeDefault 0

Indicates the default CPU cache mode.

StorageModeShared 0

Indicates that the resource is stored in a location where both the GPU and CPU can access it.

CpuCacheModeWriteCombined 1

Indicates a write-combined CPU cache mode, which is best for resources that the CPU will write but never read.

StorageModeManaged 16
StorageModePrivate 32

Indicates that the resource is stored in a location where only the GPU can acces it.

StorageModeMemoryless 48

Indicates that the resource is a temporary render target and is stored only on the tile.

HazardTrackingModeUntracked 256

Indicates that the developer must track command encoder dependencies with fences.

Applies to