Class ShaderSpliceUtil.TemplatePreprocessor | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023