A generator of texel data that creates a gradient between two specified colors.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Model I/O
A MDLColorSwatchTexture object procedurally generates texel data by creating a gradient between two colors. Like other procedural
MDLTexture subclasses, the
MDLColor class generates texel data only when that data is first referenced, and caches it for future use.