SwiftclassShaderGraph

class ShaderGraph.SGGraph

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 60

  1. funcstatic create(data: Foundation.Data?) throws -> ShaderGraph.SGGraph
  2. funcstatic create(name: String?, inputs: [ShaderGraph.SGInput]?, outputs: [ShaderGraph.SGOutput]?) -> Self?
  3. deinitdeinit
  4. fieldlet argumentsNode: ShaderGraph.SGNode
  5. fieldvar edges: [ShaderGraph.SGEdge]
  6. fieldvar inputs: [ShaderGraph.SGInput]
  7. fieldlet name: String
  8. fieldvar nodeMap: CollectionsInternal.OrderedDictionary<String, ShaderGraph.SGNode>
  9. fieldvar nodes: [ShaderGraph.SGNode]
  10. fieldvar outputs: [ShaderGraph.SGOutput]
  11. fieldlet resultsNode: ShaderGraph.SGNode
  12. funccollapseConstantAndPassthroughNodes() throws -> ()
  13. funcconnect(outputInputPairs: [AnyObject]?) throws -> ()
  14. funcconnect(_: ShaderGraph.SGOutput?, to: ShaderGraph.SGInput?) throws -> ()
  15. funcconnectedUpstreamSubgraph(rootedAt: ShaderGraph.SGNode) -> (nodes: CollectionsInternal.OrderedSet<ShaderGraph.SGNode>, edges: CollectionsInternal.OrderedSet<ShaderGraph.SGEdge>)
  16. funccreateCustomUniformsType(named: String, textureAssignments: [ShaderGraph.TextureAssignment]) throws -> ShaderGraph.SGTypeDescription
  17. funccreateDotRepresentation() throws -> NSString
  18. funcdepthFirstVisit(from: ShaderGraph.SGNode, includeSubgraphs: Bool, inputPredicate: (ShaderGraph.SGInput) -> Bool, _: (ShaderGraph.SGNode, ShaderGraph.SGNode?) throws -> ()) throws -> ()
  19. funcedgeConnected(toInputNamed: String, on: ShaderGraph.SGNode) -> ShaderGraph.SGEdge?
  20. funcedgeConnected(to: ShaderGraph.SGInput) -> ShaderGraph.SGEdge?
  21. funcedgeLabel(for: (ShaderGraph.SGNode, ShaderGraph.SGOutput, ShaderGraph.SGNode, ShaderGraph.SGInput)) -> String
  22. funcedges(from: ShaderGraph.SGOutput) -> [ShaderGraph.SGEdge]
  23. funcinputIdentifier(for: ShaderGraph.SGInput) -> String
  24. funcinputLabel(for: ShaderGraph.SGInput) -> String
  25. funcinputs(for: ShaderGraph.SGNode) -> [ShaderGraph.SGInput]
  26. funcinsert([ShaderGraph.SGNode]?) throws -> ()
  27. funcinteriorNodes() -> [ShaderGraph.SGNode]
  28. funcinternalGraph([ShaderGraph.FunctionConstantValue]) throws -> ShaderGraph.SGDataTypeGraph
  29. funcnode(containing: ShaderGraph.SGInput) -> ShaderGraph.SGNode?
  30. funcnode(containing: ShaderGraph.SGOutput) -> ShaderGraph.SGNode?
  31. funcnode(connectedTo: ShaderGraph.SGInput) -> ShaderGraph.SGNode?
  32. funcnode(named: String?) -> ShaderGraph.SGNode?
  33. funcnodeIdentifier(for: ShaderGraph.SGNode) -> String
  34. funcnodeLabel(for: ShaderGraph.SGNode) -> String
  35. funcnodeWithInput(ShaderGraph.SGInput) -> ShaderGraph.SGNode?
  36. funcnodeWithOutput(ShaderGraph.SGOutput) -> ShaderGraph.SGNode?
  37. funcnodesUpstreamOf(node: ShaderGraph.SGNode) -> [ShaderGraph.SGNode]
  38. funcoutputIdentifier(for: ShaderGraph.SGOutput) -> String
  39. funcoutputLabel(for: ShaderGraph.SGOutput) -> String
  40. funcoutputs(for: ShaderGraph.SGNode) -> [ShaderGraph.SGOutput]
  41. funcremove(edge: ShaderGraph.SGEdge) throws -> ()
  42. funcremove(node: ShaderGraph.SGNode) throws -> ()
  43. funcremoveUnconnectedNodesAndEdges() throws -> ()
  44. funcreplaceDeprecatedAndRedundantNodes(using: ShaderGraph.NodeDefStore) throws -> ()
  45. funcsinkNodes() -> [ShaderGraph.SGNode]
  46. funcsourceNodes() -> [ShaderGraph.SGNode]
  47. funcsubgraphs() -> [ShaderGraph.SGGraph]
  48. functopologicalSort() throws -> ShaderGraph.TopologicalSort
  49. initShaderGraph.SGGraph.__allocating_init(from: Decoder, configuration: ShaderGraph.MaterialDecodingConfiguration) throws -> ShaderGraph.SGGraph
  50. initShaderGraph.SGGraph.__allocating_init(name: String, inputs: [ShaderGraph.SGInput], outputs: [ShaderGraph.SGOutput]) -> ShaderGraph.SGGraph
  51. initShaderGraph.SGGraph.__allocating_init() -> ShaderGraph.SGGraph
  52. typealiastypealias DecodingConfiguration = ShaderGraph.MaterialDecodingConfiguration
  53. typealiastypealias InputType = ShaderGraph.SGInput
  54. typealiastypealias NodeType = ShaderGraph.SGNode
  55. typealiastypealias OutputType = ShaderGraph.SGOutput
  56. varfinal var bodyNodes: ArraySlice<ShaderGraph.SGNode> { get }
  57. varfinal var childNodes: [ShaderGraph.SGNode] { get }
  58. varfinal var edgeTuples: [(ShaderGraph.SGNode, ShaderGraph.SGOutput, ShaderGraph.SGNode, ShaderGraph.SGInput)] { get }
  59. varfinal var identifier: String { get }
  60. varfinal var label: String { get }
@objc(SGGraph)
class SGGraph: __C.NSObject, __C.SGHasIO {
    struct ReplacementNode {
        let name: Swift.String
        let additionalInputValues: [(ShaderGraph.BuiltInDefinition.InputSpec, ShaderGraph.SGDataTypeStorage)]

        init(name: Swift.String, _: [(ShaderGraph.BuiltInDefinition.InputSpec, ShaderGraph.SGDataTypeStorage)])
    }
    enum CodingKeys {
        case nodes
        case edges
        case inputs
        case outputs
        case name
    }
    // Local type in a function or closure the binary does not name
    struct Context {
        var stack: [ShaderGraph.SGNode]
        var discovered: CollectionsInternal.OrderedSet<Swift.ObjectIdentifier>
        var visitedGraphNodes: CollectionsInternal.OrderedSet<Swift.ObjectIdentifier>
        var inputMap: CollectionsInternal.OrderedDictionary<Swift.ObjectIdentifier, Swift.IndexingIterator<[ShaderGraph.SGNode]>>
    }
    let name: Swift.String
    let argumentsNode: ShaderGraph.SGNode
    let resultsNode: ShaderGraph.SGNode
    final var nodes: [ShaderGraph.SGNode]
    var nodeMap: CollectionsInternal.OrderedDictionary<Swift.String, ShaderGraph.SGNode>
    final var edges: [ShaderGraph.SGEdge]
    final var inputs: [ShaderGraph.SGInput]
    final var outputs: [ShaderGraph.SGOutput]

    init(name: Swift.String, inputs: [ShaderGraph.SGInput], outputs: [ShaderGraph.SGOutput])

    init(from: any Swift.Decoder, configuration: ShaderGraph.MaterialDecodingConfiguration) throws
    init()

    final var bodyNodes: Swift.ArraySlice<ShaderGraph.SGNode> {
        get
    }
    final var childNodes: [ShaderGraph.SGNode] {
        get
    }
    final var edgeTuples: [(ShaderGraph.SGNode, ShaderGraph.SGOutput, ShaderGraph.SGNode, ShaderGraph.SGInput)] {
        get
    }
    final var identifier: Swift.String {
        get
    }
    final var label: Swift.String {
        get
    }

    final func internalGraph(_: [ShaderGraph.FunctionConstantValue]) throws -> ShaderGraph.SGDataTypeGraph
    final func inputLabel(for: ShaderGraph.SGInput) -> Swift.String
    final func outputLabel(for: ShaderGraph.SGOutput) -> Swift.String
    final func sourceNodes() -> [ShaderGraph.SGNode]
    final func edgeConnected(toInputNamed: Swift.String, on: ShaderGraph.SGNode) -> ShaderGraph.SGEdge?
    final func edgeConnected(to: ShaderGraph.SGInput) -> ShaderGraph.SGEdge?
    final func interiorNodes() -> [ShaderGraph.SGNode]
    final func nodeWithInput(_: ShaderGraph.SGInput) -> ShaderGraph.SGNode?
    final func nodeIdentifier(for: ShaderGraph.SGNode) -> Swift.String
    final func nodeWithOutput(_: ShaderGraph.SGOutput) -> ShaderGraph.SGNode?
    final func depthFirstVisit(from: ShaderGraph.SGNode, includeSubgraphs: Swift.Bool, inputPredicate: (_: ShaderGraph.SGInput) -> Swift.Bool, _: (ShaderGraph.SGNode, ShaderGraph.SGNode?) throws -> ()) throws
    final func inputIdentifier(for: ShaderGraph.SGInput) -> Swift.String
    final func nodesUpstreamOf(node: ShaderGraph.SGNode) -> [ShaderGraph.SGNode]
    final func topologicalSort() throws -> ShaderGraph.TopologicalSort
    final func outputIdentifier(for: ShaderGraph.SGOutput) -> Swift.String
    final func createDotRepresentation() throws -> __C.NSString
    final func createCustomUniformsType(named: Swift.String, textureAssignments: [ShaderGraph.TextureAssignment]) throws -> ShaderGraph.SGTypeDescription
    final func connectedUpstreamSubgraph(rootedAt: ShaderGraph.SGNode) -> (nodes: CollectionsInternal.OrderedSet<ShaderGraph.SGNode>, edges: CollectionsInternal.OrderedSet<ShaderGraph.SGEdge>)
    final func removeUnconnectedNodesAndEdges() throws
    final func replaceDeprecatedAndRedundantNodes(using: ShaderGraph.NodeDefStore) throws
    final func collapseConstantAndPassthroughNodes() throws
    final func node(containing: ShaderGraph.SGInput) -> ShaderGraph.SGNode?
    final func node(containing: ShaderGraph.SGOutput) -> ShaderGraph.SGNode?
    final func node(connectedTo: ShaderGraph.SGInput) -> ShaderGraph.SGNode?
    @objc(nodeNamed:) func node(named: Swift.String?) -> ShaderGraph.SGNode?
    final func edges(from: ShaderGraph.SGOutput) -> [ShaderGraph.SGEdge]
    final func inputs(for: ShaderGraph.SGNode) -> [ShaderGraph.SGInput]
    final func insert(_: [ShaderGraph.SGNode]?) throws
    final func remove(edge: ShaderGraph.SGEdge) throws
    final func remove(node: ShaderGraph.SGNode) throws
    final func connect(outputInputPairs: [Swift.AnyObject]?) throws
    final func connect(_: ShaderGraph.SGOutput?, to: ShaderGraph.SGInput?) throws
    final func outputs(for: ShaderGraph.SGNode) -> [ShaderGraph.SGOutput]
    final func edgeLabel(for: (ShaderGraph.SGNode, ShaderGraph.SGOutput, ShaderGraph.SGNode, ShaderGraph.SGInput)) -> Swift.String
    final func nodeLabel(for: ShaderGraph.SGNode) -> Swift.String
    final func sinkNodes() -> [ShaderGraph.SGNode]
    final func subgraphs() -> [ShaderGraph.SGGraph]

    static func create(data: Foundation.Data?) throws -> ShaderGraph.SGGraph
    static func create(name: Swift.String?, inputs: [ShaderGraph.SGInput]?, outputs: [ShaderGraph.SGOutput]?) -> Self?

    deinit
}