Method EnqueueShadersToGenerate
EnqueueShadersToGenerate(String, ModularShader, IEnumerable<Material>, Action<StringBuilder, ShaderGenerator.ShaderContext>)
Enqueues shaders to generate
Declaration
public static List<ShaderGenerator.ShaderContext> EnqueueShadersToGenerate(string path, ModularShader shader, IEnumerable<Material> materials, Action<StringBuilder, ShaderGenerator.ShaderContext> postGeneration = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | path for the shader files |
| ModularShader | shader | Modular shader to use |
| IEnumerable<Material> | materials | List of materials given |
| Action<StringBuilder, ShaderGenerator.ShaderContext> | postGeneration | Actions to performs post generation and before cleanup |
Returns
| Type | Description |
|---|---|
| List<ShaderGenerator.ShaderContext> | A list of the shaderContexts |