Class ShaderSpliceUtil.TemplatePreprocessor
Inheritance
System.Object
ShaderSpliceUtil.TemplatePreprocessor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEditor.ShaderGraph
Syntax
public class TemplatePreprocessor
Constructors
TemplatePreprocessor(HashSet<String>, Dictionary<String, String>, Boolean, String, List<String>, String, ShaderStringBuilder)
Declaration
public TemplatePreprocessor(HashSet<string> activeFields, Dictionary<string, string> namedFragments, bool debugOutput, string templatePath, List<string> sourceAssetDependencyPaths, string buildTypeAssemblyNameFormat, ShaderStringBuilder outShaderCodeResult = null)
Parameters
Type | Name | Description |
---|---|---|
HashSet<System.String> | activeFields | |
Dictionary<System.String, System.String> | namedFragments | |
System.Boolean | debugOutput | |
System.String | templatePath | |
List<System.String> | sourceAssetDependencyPaths | |
System.String | buildTypeAssemblyNameFormat | |
ShaderStringBuilder | outShaderCodeResult |
Methods
GetShaderCode()
Declaration
public ShaderStringBuilder GetShaderCode()
Returns
Type | Description |
---|---|
ShaderStringBuilder |
ProcessTemplateFile(String)
Declaration
public void ProcessTemplateFile(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath |
ProcessTemplateLine(String, Int32, Int32)
Declaration
public void ProcessTemplateLine(string line, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.String | line | |
System.Int32 | start | |
System.Int32 | end |