docs.unity.cn
    Show / Hide Table of Contents

    Class HDROutputUtils

    Utility class for outputting to an HDR display.

    Inheritance
    Object
    HDROutputUtils
    Namespace: UnityEngine.Rendering
    Syntax
    public static class HDROutputUtils

    Methods

    ConfigureHDROutput(ComputeShader, ColorGamut, HDROutputUtils.Operation)

    Configures the compute shader keywords to use HDR output parameters.

    Declaration
    public static void ConfigureHDROutput(ComputeShader computeShader, ColorGamut gamut, HDROutputUtils.Operation operations)
    Parameters
    Type Name Description
    UnityEngine.ComputeShader computeShader

    The compute shader used with HDR output.

    UnityEngine.ColorGamut gamut

    Color gamut (a combination of color space and encoding) queried from the device.

    HDROutputUtils.Operation operations

    HDR color operations the shader applies.

    ConfigureHDROutput(Material, ColorGamut, HDROutputUtils.Operation)

    Configures the Material keywords to use HDR output parameters.

    Declaration
    public static void ConfigureHDROutput(Material material, ColorGamut gamut, HDROutputUtils.Operation operations)
    Parameters
    Type Name Description
    UnityEngine.Material material

    The Material used with HDR output.

    UnityEngine.ColorGamut gamut

    Color gamut (a combination of color space and encoding) queried from the device.

    HDROutputUtils.Operation operations

    HDR color operations the shader applies.

    IsShaderVariantValid(ShaderKeywordSet, Boolean)

    Returns true if the given set of keywords is valid for HDR output.

    Declaration
    public static bool IsShaderVariantValid(ShaderKeywordSet shaderKeywordSet, bool isHDREnabled)
    Parameters
    Type Name Description
    UnityEngine.Rendering.ShaderKeywordSet shaderKeywordSet

    Shader keywords combination that represents a shader variant.

    Boolean isHDREnabled

    Whether HDR output shader variants are required.

    Returns
    Type Description
    Boolean

    True if the shader variant is valid and should not be stripped.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 17 July 2023