MetalEffectPIX

public class MetalEffectPIX : PIXSingleEffect, PIXMetal

Metal Shader (Effect)

vars: pi, u, v, uv, w, h, wu, hv, inPix

Example:

let metalEffectPix = MetalEffectPIX(code:
    """
    float gamma = 0.25;
    pix = pow(inPix, 1.0 / gamma);
    """
)
metalEffectPix.inPix = CameraPIX()
  • Undocumented

    Declaration

    Swift

    override open var shader: String { get }
  • Undocumented

    Declaration

    Swift

    public override var shaderNeedsAspect: Bool { get }