An option for reading or sampling from the texture in a shader.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Set this option if you access the given texture with a
sample() function in any shader. This option enables the
access:: attributes for the texture. For more information about texture functions and access attributes, see Metal Shading Language Guide.
If the texture is a read-write texture that you also access with a
write() function in the same shader, set the
MTLTexture option to enable the