MDLColorSwatchTexture
A generator of texel data that creates a gradient between two specified colors.
Declaration
class MDLColorSwatchTextureOverview
A MDLColorSwatchTexture object procedurally generates texel data by creating a gradient between two colors. Like other procedural MDLTexture subclasses, the MDLColorSwatchTexture class generates texel data only when that data is first referenced, and caches it for future use.
Topics
Creating a Color Swatch Texture
init(colorGradientFrom:to:name:textureDimensions:)init(colorTemperatureGradientFrom:toColorTemperature:name:textureDimensions:)