SwiftclassShaderGraph
class ShaderGraph.SGGraph
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolShaderGraph.GenericDotGraph
- protocolSwift.Decodable
- protocolSwift.Encodable
Members 60
- func
static create(data: Foundation.Data?) throws -> ShaderGraph.SGGraph - func
static create(name: String?, inputs: [ShaderGraph.SGInput]?, outputs: [ShaderGraph.SGOutput]?) -> Self? - deinit
deinit - field
let argumentsNode: ShaderGraph.SGNode - field
var edges: [ShaderGraph.SGEdge] - field
var inputs: [ShaderGraph.SGInput] - field
let name: String - field
var nodeMap: CollectionsInternal.OrderedDictionary<String, ShaderGraph.SGNode> - field
var nodes: [ShaderGraph.SGNode] - field
var outputs: [ShaderGraph.SGOutput] - field
let resultsNode: ShaderGraph.SGNode - func
collapseConstantAndPassthroughNodes() throws -> () - func
connect(outputInputPairs: [AnyObject]?) throws -> () - func
connect(_: ShaderGraph.SGOutput?, to: ShaderGraph.SGInput?) throws -> () - func
connectedUpstreamSubgraph(rootedAt: ShaderGraph.SGNode) -> (nodes: CollectionsInternal.OrderedSet<ShaderGraph.SGNode>, edges: CollectionsInternal.OrderedSet<ShaderGraph.SGEdge>) - func
createCustomUniformsType(named: String, textureAssignments: [ShaderGraph.TextureAssignment]) throws -> ShaderGraph.SGTypeDescription - func
createDotRepresentation() throws -> NSString - func
depthFirstVisit(from: ShaderGraph.SGNode, includeSubgraphs: Bool, inputPredicate: (ShaderGraph.SGInput) -> Bool, _: (ShaderGraph.SGNode, ShaderGraph.SGNode?) throws -> ()) throws -> () - func
edgeConnected(toInputNamed: String, on: ShaderGraph.SGNode) -> ShaderGraph.SGEdge? - func
edgeConnected(to: ShaderGraph.SGInput) -> ShaderGraph.SGEdge? - func
edgeLabel(for: (ShaderGraph.SGNode, ShaderGraph.SGOutput, ShaderGraph.SGNode, ShaderGraph.SGInput)) -> String - func
edges(from: ShaderGraph.SGOutput) -> [ShaderGraph.SGEdge] - func
inputIdentifier(for: ShaderGraph.SGInput) -> String - func
inputLabel(for: ShaderGraph.SGInput) -> String - func
inputs(for: ShaderGraph.SGNode) -> [ShaderGraph.SGInput] - func
insert([ShaderGraph.SGNode]?) throws -> () - func
interiorNodes() -> [ShaderGraph.SGNode] - func
internalGraph([ShaderGraph.FunctionConstantValue]) throws -> ShaderGraph.SGDataTypeGraph - func
node(containing: ShaderGraph.SGInput) -> ShaderGraph.SGNode? - func
node(containing: ShaderGraph.SGOutput) -> ShaderGraph.SGNode? - func
node(connectedTo: ShaderGraph.SGInput) -> ShaderGraph.SGNode? - func
node(named: String?) -> ShaderGraph.SGNode? - func
nodeIdentifier(for: ShaderGraph.SGNode) -> String - func
nodeLabel(for: ShaderGraph.SGNode) -> String - func
nodeWithInput(ShaderGraph.SGInput) -> ShaderGraph.SGNode? - func
nodeWithOutput(ShaderGraph.SGOutput) -> ShaderGraph.SGNode? - func
nodesUpstreamOf(node: ShaderGraph.SGNode) -> [ShaderGraph.SGNode] - func
outputIdentifier(for: ShaderGraph.SGOutput) -> String - func
outputLabel(for: ShaderGraph.SGOutput) -> String - func
outputs(for: ShaderGraph.SGNode) -> [ShaderGraph.SGOutput] - func
remove(edge: ShaderGraph.SGEdge) throws -> () - func
remove(node: ShaderGraph.SGNode) throws -> () - func
removeUnconnectedNodesAndEdges() throws -> () - func
replaceDeprecatedAndRedundantNodes(using: ShaderGraph.NodeDefStore) throws -> () - func
sinkNodes() -> [ShaderGraph.SGNode] - func
sourceNodes() -> [ShaderGraph.SGNode] - func
subgraphs() -> [ShaderGraph.SGGraph] - func
topologicalSort() throws -> ShaderGraph.TopologicalSort - init
ShaderGraph.SGGraph.__allocating_init(from: Decoder, configuration: ShaderGraph.MaterialDecodingConfiguration) throws -> ShaderGraph.SGGraph - init
ShaderGraph.SGGraph.__allocating_init(name: String, inputs: [ShaderGraph.SGInput], outputs: [ShaderGraph.SGOutput]) -> ShaderGraph.SGGraph - init
ShaderGraph.SGGraph.__allocating_init() -> ShaderGraph.SGGraph - typealias
typealias DecodingConfiguration = ShaderGraph.MaterialDecodingConfiguration - typealias
typealias InputType = ShaderGraph.SGInput - typealias
typealias NodeType = ShaderGraph.SGNode - typealias
typealias OutputType = ShaderGraph.SGOutput - var
final var bodyNodes: ArraySlice<ShaderGraph.SGNode> { get } - var
final var childNodes: [ShaderGraph.SGNode] { get } - var
final var edgeTuples: [(ShaderGraph.SGNode, ShaderGraph.SGOutput, ShaderGraph.SGNode, ShaderGraph.SGInput)] { get } - var
final var identifier: String { get } - var
final var label: String { get }
Header
@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 }