docs.unity.cn
    Show / Hide Table of Contents

    Interface IVariantStripper<TShader, TShaderVariant>

    Interface to be implemented for a type of shader that it's variants can be stripped

    Namespace: UnityEditor.Rendering
    Syntax
    public interface IVariantStripper<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

    Properties

    active

    Returns if the stripper is active

    Declaration
    bool active { get; }
    Property Value
    Type Description
    Boolean

    Methods

    CanRemoveVariant(TShader, TShaderVariant, ShaderCompilerData)

    Specifies if a variant can be stripped

    Declaration
    bool CanRemoveVariant(TShader shader, TShaderVariant shaderVariant, ShaderCompilerData shaderCompilerData)
    Parameters
    Type Name Description
    TShader shader

    The

    TShaderVariant shaderVariant
    ShaderCompilerData shaderCompilerData

    The variant

    Returns
    Type Description
    Boolean

    true if the variant is not used and can be stripped

    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 07 August 2023