Classes

The following classes are available globally.

  • Undocumented

    See more

    Declaration

    Swift

    public class LiveBool : LiveValue, ExpressibleByBooleanLiteral, CustomStringConvertible
  • Undocumented

    See more

    Declaration

    Swift

    public class MetalUniform
  • Undocumented

    See more

    Declaration

    Swift

    public class LiveFloat : LiveValue, ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral, CustomStringConvertible
  • Undocumented

    See more

    Declaration

    Swift

    public class LiveInt : LiveValue, ExpressibleByIntegerLiteral, CustomStringConvertible
  • Undocumented

    See more

    Declaration

    Swift

    public class LiveRect : LiveValue, ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral, CustomStringConvertible
  • Undocumented

    See more

    Declaration

    Swift

    public class LiveSize : LiveValue, ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral, CustomStringConvertible
  • PIX

    Undocumented

    See more

    Declaration

    Swift

    open class PIX
  • Metal Shader (Generator)

    vars: pi, u, v, uv

    Example:

    let metalPix = MetalPIX(res: ._1080p, code:
        """
        pix = float4(u, v, 0.0, 1.0);
        """
    )
    
    See more

    Declaration

    Swift

    public class MetalPIX : PIXGenerator, PIXMetal
  • Metal Shader (Merger Effect)

    vars: pi, u, v, uv, wA, hA, wuA, hvA, inPixA, wB, hB, wuB, hvB, inPixB

    float4 inPixA = inTexA.sample(s, uv);

    Example:

    let metalMergerEffectPix = MetalMergerEffectPIX(code:
        """
        pix = pow(inPixA, 1.0 / inPixB);
        """
    )
    metalMergerEffectPix.inPixA = CameraPIX()
    metalMergerEffectPix.inPixB = ImagePIX("img_name")
    
    See more

    Declaration

    Swift

    public class MetalMergerEffectPIX : PIXMergerEffect, 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")]
    
    See more

    Declaration

    Swift

    public class MetalMultiEffectPIX : PIXMultiEffect, PIXMetal
  • Undocumented

    Declaration

    Swift

    open class PIXEffect : PIX, PIXInIO, PIXOutIO
  • 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()
    
    See more

    Declaration

    Swift

    public class MetalEffectPIX : PIXSingleEffect, PIXMetal