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

CpuCacheModeDefault 0

Indicates the default CPU cache mode.

CpuCacheModeWriteCombined 1

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

HazardTrackingModeUntracked 256

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

StorageModeManaged 16
StorageModeMemoryless 48

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

StorageModePrivate 32

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

StorageModeShared 0

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

Applies to