类 WebGPUShaderCompileUtil
构造函数
方法
静态checkCondition
- checkCondition(st, def): boolean
返回 boolean
静态checkDef
- checkDef(node, _defs): void
返回 void
静态macrosToVariable
- macrosToVariable(macros): Set<string>
返回 Set<string>
静态removeUniform
- removeUniform(code): string
返回 string
静态removeVarying
- removeVarying(code): string
返回 string
静态toScript
- toScript(root, def?, outData?): string
返回 string
提取宏定义