/// <summary> /// Initializes a new instance of the <see cref="ComponentMapping"/> structure. /// </summary> /// <param name="r"> /// Determines the component value placed in the R component of the output vector. /// </param> /// <param name="g"> /// Determines the component value placed in the G component of the output vector. /// </param> /// <param name="b"> /// Determines the component value placed in the B component of the output vector. /// </param> /// <param name="a"> /// Determines the component value placed in the A component of the output vector. /// </param> public ComponentMapping(ComponentSwizzle r, ComponentSwizzle g, ComponentSwizzle b, ComponentSwizzle a) { R = r; G = g; B = b; A = a; }
/// <summary> /// /// </summary> public ComponentMapping(ComponentSwizzle r, ComponentSwizzle g, ComponentSwizzle b, ComponentSwizzle a) { this.R = r; this.G = g; this.B = b; this.A = a; }
public ComponentMapping ( ComponentSwizzle r = default, ComponentSwizzle g = default, ComponentSwizzle b = default, ComponentSwizzle a = default ) { R = r; G = g; B = b; A = a; }
public ComponentMapping(ComponentSwizzle component) { R = G = B = A = component; }