docs.unity3d.com
Search Results for

    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

    Inherited Members
    IStripper.active
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public interface IVariantStripper<TShader, TShaderVariant> : IStripper 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

    CanRemoveVariant(TShader, TShaderVariant, ShaderCompilerData)

    Specifies if a TShader variant can be stripped

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

    The TShader

    TShaderVariant shaderVariant

    TShaderVariant

    ShaderCompilerData shaderCompilerData

    The variant

    Returns
    Type Description
    bool

    true if the variant is not used and can be stripped

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)