Class ShaderSpliceUtil
Inheritance
System.Object
ShaderSpliceUtil
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 static class ShaderSpliceUtil
Methods
ApplyDependencies(HashSet<String>, List<Dependency[]>)
Declaration
public static void ApplyDependencies(HashSet<string> activeFields, List<Dependency[]> dependsList)
Parameters
Type | Name | Description |
---|---|---|
HashSet<System.String> | activeFields | |
List<Dependency[]> | dependsList |
BuildPackedType(Type, HashSet<String>, ShaderGenerator)
Declaration
public static void BuildPackedType(Type unpacked, HashSet<string> activeFields, ShaderGenerator result)
Parameters
Type | Name | Description |
---|---|---|
System.Type | unpacked | |
HashSet<System.String> | activeFields | |
ShaderGenerator | result |
BuildType(Type, HashSet<String>, ShaderGenerator)
Declaration
public static void BuildType(Type t, HashSet<string> activeFields, ShaderGenerator result)
Parameters
Type | Name | Description |
---|---|---|
System.Type | t | |
HashSet<System.String> | activeFields | |
ShaderGenerator | result |
PreprocessShaderCode(String, HashSet<String>, Dictionary<String, String>, StringBuilder, Boolean)
Declaration
public static StringBuilder PreprocessShaderCode(string code, HashSet<string> activeFields, Dictionary<string, string> namedFragments, StringBuilder result, bool debugOutput)
Parameters
Type | Name | Description |
---|---|---|
System.String | code | |
HashSet<System.String> | activeFields | |
Dictionary<System.String, System.String> | namedFragments | |
System.Text.StringBuilder | result | |
System.Boolean | debugOutput |
Returns
Type | Description |
---|---|
System.Text.StringBuilder |