docs.unity.cn
    Show / Hide Table of Contents

    Interface IVariantStripperScope<TShader, TShaderVariant>

    Interface to allow an IVariantStripper<TShader, TShaderVariant> to have a callback before and after the processing of variants

    Namespace: UnityEditor.Rendering
    Syntax
    public interface IVariantStripperScope<TShader, TShaderVariant>
        where TShader : Object
    Type Parameters
    Name Description
    TShader

    The shader Shader or ComputeShader

    TShaderVariant

    The type of variant for the given type of shader can either be ShaderSnippetData or String

    Methods

    AfterShaderStripping(TShader)

    Callback that will be executed after parsing variants

    Declaration
    void AfterShaderStripping(TShader shader)
    Parameters
    Type Name Description
    TShader shader

    The shader

    BeforeShaderStripping(TShader)

    Callback that will be executed before parsing variants

    Declaration
    void BeforeShaderStripping(TShader shader)
    Parameters
    Type Name Description
    TShader shader

    The shader

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 22 August 2023