Created GLSLangProvider class with API for linting and downloading glslangValidator

Moved glslang stuff from Config to GLSLangProvider. ConfigProvider invokes GLSLangValidator to prompt and download glslangValidator instead
This commit is contained in:
Noah Santschi-Cooney 2019-08-11 21:21:41 +01:00
parent 156d76e7de
commit 41995c3f38
16 changed files with 819 additions and 607 deletions

View file

@ -38,4 +38,24 @@ export class Graph {
}
this.nodes.set(parent, par)
}
public toString(): string {
let result = ''
let start = true
this.nodes.forEach((node, key) => {
if (!start) {
key += '\n'
start = false
}
result += `${key}:\n\tchildren: `
node.children.forEach((_, key) => {
result += key + ' '
})
result + '\n\tparents: '
node.parents.forEach((_, key) => {
result += key + ' '
})
})
return result
}
}