MetalMultiEffectPIX

public class MetalMultiEffectPIX : PIXMultiEffect, PIXMetal

Metal Shader (Multi Effect)

vars: pi, u, v, uv, pixCount

Example:

let metalMultiEffectPix = MetalMultiEffectPIX(code:
    """
    float4 inPixA = inTexs.sample(s, uv, 0);
    float4 inPixB = inTexs.sample(s, uv, 1);
    float4 inPixC = inTexs.sample(s, uv, 2);
    pix = inPixA + inPixB + inPixC;
    """
)
metalMultiEffectPix.inPixs = [ImagePIX("img_a"), ImagePIX("img_b"), ImagePIX("img_c")]
  • Undocumented

    Declaration

    Swift

    override open var shader: String { get }
  • Undocumented

    Declaration

    Swift

    public override var shaderNeedsAspect: Bool { get }