SwiftclassShaderGraph
MetalShaderCompiler
class ShaderGraph.MetalShaderCompiler
Members 8
- deinit
deinit - field
var currentScope: ShaderGraph.MetalShaderCompiler.Scope+0x18 - field
let program: ShaderGraph.MetalShaderProgram+0x10 - func
compile() throws -> String - func
popScope() -> () - func
pushScope() -> ShaderGraph.MetalShaderCompiler.Scope - func
withChildScope<A>((ShaderGraph.MetalShaderCompiler.Scope) throws -> A) throws -> A - init
ShaderGraph.MetalShaderCompiler.__allocating_init(compiling: ShaderGraph.MetalShaderProgram) -> ShaderGraph.MetalShaderCompiler
Header
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 }