Пример #1
0
        public SnippetComileDataTuple(UnityEditor.Rendering.ShaderSnippetData snippet, UnityEditor.Rendering.ShaderCompilerData[] ashaderVariants)
        {
            this.snippet = new StripShaderSnippetData(snippet);
            int n = ashaderVariants.Length;

            this.shaderVariants = new List <StripShaderCompilerData>();
            for (int i = 0; i < n; i++)
            {
                this.shaderVariants.Add(new StripShaderCompilerData(ashaderVariants[i]));
            }
        }
Пример #2
0
 public SnippetComileDataTuple(UnityEditor.Rendering.ShaderSnippetData snippet, UnityEditor.Rendering.ShaderCompilerData ashaderVariant, bool isStripped = false)
 {
     this.snippet        = new StripShaderSnippetData(snippet);
     this.shaderVariants = new List <StripShaderCompilerData>();
     this.shaderVariants.Add(new StripShaderCompilerData(ashaderVariant, isStripped));
 }
Пример #3
0
 public SnippetComileDataTuple(UnityEditor.Rendering.ShaderSnippetData snippet)
 {
     this.snippet        = new StripShaderSnippetData(snippet);
     this.shaderVariants = new List <StripShaderCompilerData>();
 }