color(_:)
Returns an argument value representing color. When passed to a MSL function it will convert to a half4 value, as a premultiplied color in the target color space.
Declaration
static func color(_ color: Color) -> Shader.ArgumentReturns an argument value representing color. When passed to a MSL function it will convert to a half4 value, as a premultiplied color in the target color space.
static func color(_ color: Color) -> Shader.Argument