resourceOptions
The behavior of a new memory allocation.
Declaration
var resourceOptions: MTLResourceOptions { get set }Discussion
This property only has an effect when you are allocating a new texture. If you are creating a texture whose data comes from another MTLResource object, this property value is ignored, and the value of the original resource is used instead.
The value of this property aggregates the values of storageMode, cpuCacheMode, and hazardTrackingMode. If you modify this property, the other properties also change, and vice versa.