Contents

color(_:pixelFormat:)

Indicates that a texture contains color data to interpret in a specific color space.

Declaration

static func color(_ colorSpace: TextureResource.Format.ColorSpace, pixelFormat: MTLPixelFormat) -> TextureResource.Format

Discussion

The created texture uses the TextureResource.Semantic.color or TextureResource.Semantic.hdrColor semantic.

See Also

Creating the format