SwiftclassShaderGraph

class ShaderGraph.MetalShaderCompiler

Members 8

  1. deinitdeinit
  2. fieldvar currentScope: ShaderGraph.MetalShaderCompiler.Scope+0x18
  3. fieldlet program: ShaderGraph.MetalShaderProgram+0x10
  4. funccompile() throws -> String
  5. funcpopScope() -> ()
  6. funcpushScope() -> ShaderGraph.MetalShaderCompiler.Scope
  7. funcwithChildScope<A>((ShaderGraph.MetalShaderCompiler.Scope) throws -> A) throws -> A
  8. initShaderGraph.MetalShaderCompiler.__allocating_init(compiling: ShaderGraph.MetalShaderProgram) -> ShaderGraph.MetalShaderCompiler
class MetalShaderCompiler {
    class Scope {
        var nodesToResultVariableNameMap: [ShaderGraph.FunctionNodeID : Swift.String]
        var lastResultVariableIndex: Swift.Int
        weak var enclosingScope: ShaderGraph.MetalShaderCompiler.Scope?
        var childScopes: [ShaderGraph.MetalShaderCompiler.Scope]
        var definedTypes: [Swift.String : ShaderGraph.MetalDataType]
        var includePaths: [Swift.String]
        var globalDeclarations: [Swift.String]
        var topGlobalDeclarations: [Swift.String]
        var metalSourceSegments: [Swift.String]

        var global: ShaderGraph.MetalShaderCompiler.Scope {
            get
        }
        init(enclosingScope: ShaderGraph.MetalShaderCompiler.Scope?)
        func allScopes() -> [ShaderGraph.MetalShaderCompiler.Scope]
        func resultVariableName(for: any ShaderGraph.MetalFunctionNode) -> Swift.String?
        func createResultVariableName(for: any ShaderGraph.MetalFunctionNode) -> Swift.String
        func createChildScope() -> ShaderGraph.MetalShaderCompiler.Scope
        func addStructTypeDefinition(_: ShaderGraph.MetalDataType, name: Swift.String)
        func structTypeDefinition(named: Swift.String) -> ShaderGraph.MetalDataType?

        deinit
    }
    let program: ShaderGraph.MetalShaderProgram
    var currentScope: ShaderGraph.MetalShaderCompiler.Scope

    init(compiling: ShaderGraph.MetalShaderProgram)
    func compile() throws -> Swift.String
    func pushScope() -> ShaderGraph.MetalShaderCompiler.Scope
    func popScope()
    func withChildScope<A>(_: (_: ShaderGraph.MetalShaderCompiler.Scope) throws -> A) throws -> A

    deinit
}