MetalPIX

public class MetalPIX : PIXGenerator, PIXMetal

Metal Shader (Generator)

vars: pi, u, v, uv

Example:

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

    Declaration

    Swift

    override open var shader: String { get }
  • Undocumented

    Declaration

    Swift

    public override var shaderNeedsAspect: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var metalUniforms: [MetalUniform] { get set }
  • Undocumented

    Declaration

    Swift

    public var code: String { get set }
  • Undocumented

    Declaration

    Swift

    public var isRawCode: Bool
  • Undocumented

    Declaration

    Swift

    public var console: String?
  • Undocumented

    Declaration

    Swift

    override public var liveValues: [LiveValue] { get }
  • Undocumented

    Declaration

    Swift

    static func _uv(res: Res) -> MetalPIX