Creates a new texture object that shares the texture's storage allocation, reinterpreting the texture image data with a different pixel format and sampling pattern.
- iOS 13.0+Beta
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
A new pixel format, which must be compatible with the original pixel format.
A new texture type.
A new base level range that restricts which mipmap levels are visible in the new texture.
A new base slice range that restricts which array slices are visible in the new texture.
The swizzle pattern the GPU uses to reorder the data when sampling or reading the texture.
A new texture view.
For more information on texture views, see
The swizzle pattern of the view is combined with that of the parent texture to generate the final swizzle pattern. For example: An
[R,G,A,B] swizzle of a texture with a
[R,1,1,G] swizzle pattern is