docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace Unity.XR.CompositionLayers.Extensions

    Classes

    ColorScaleBiasExtension

    Subclass of CompositionLayerExtension to support color scaling and biasing for the CompositionLayer instance on the same game object.

    Support for this component is up the the instance of ILayerProvider currently assigned to the CompositionLayerManager.

    If this extension is not added to a layer game object, it is expected that the provider will assume no color scale/bias is to be applied.

    HDRTonemappingExtension

    Subclass of CompositionLayerExtension that describes the HDR encoding of the source texture of the CompositionLayer instance on the same game object: its color gamut, the luminance of paper white, and its maximum luminance.

    Providers that support HDR output use these values to convert the layer's content for the display. Editor emulation also uses them when the Game view outputs HDR. Support for this component is up to the instance of ILayerProvider currently assigned to the CompositionLayerManager; the OpenXR provider ignores it.

    If this extension is not added to a layer game object, the layer's source texture is treated as not HDR-encoded.

    TexturesExtension

    Subclass of CompositionLayerExtension to support defining textures, and the rects for rendering those textures for a CompositionLayer instance on the same game object.

    Source rect is used to define the rectangle within the source texture that the layer provider should use when reading texture information for the layer.

    Destination rect is used to define the rectangle within the source texture that the layer provider should use when writing texture information for the layer.

    Support for this component is up the the instance of ILayerProvider currently assigned to the CompositionLayerManager.

    If this extension is not added to a layer game object, it is expected that the provider will provide the necessary textures in some other way. This may occur in cases such as the rendering of protected content.

    Enums

    TexturesExtension.MipMapModeEnum

    Mipmap Mode enumeration. Determines how mipmap levels are written into the layer's swapchain.

    TexturesExtension.SourceTextureEnum

    Source Texture enumeration.

    TexturesExtension.TargetEyeEnum

    Target eye enumeration.

    In This Article
    Back to top
    Copyright © 2026 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)