docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor TextureDesc

    TextureDesc(int, int, bool, bool)

    TextureDesc constructor for a texture using explicit size

    Declaration
    public TextureDesc(int width, int height, bool dynamicResolution = false, bool xrReady = false)
    Parameters
    Type Name Description
    int width

    Texture width

    int height

    Texture height

    bool dynamicResolution

    Use dynamic resolution

    bool xrReady

    Set this to true if the Texture is a render texture in an XR setting.

    TextureDesc(Vector2, bool, bool)

    TextureDesc constructor for a texture using a fixed scaling

    Declaration
    public TextureDesc(Vector2 scale, bool dynamicResolution = false, bool xrReady = false)
    Parameters
    Type Name Description
    Vector2 scale

    RTHandle scale used for this texture

    bool dynamicResolution

    Use dynamic resolution

    bool xrReady

    Set this to true if the Texture is a render texture in an XR setting.

    TextureDesc(ScaleFunc, bool, bool)

    TextureDesc constructor for a texture using a functor for scaling

    Declaration
    public TextureDesc(ScaleFunc func, bool dynamicResolution = false, bool xrReady = false)
    Parameters
    Type Name Description
    ScaleFunc func

    Function used to determine the texture size

    bool dynamicResolution

    Use dynamic resolution

    bool xrReady

    Set this to true if the Texture is a render texture in an XR setting.

    TextureDesc(TextureDesc)

    Copy constructor

    Declaration
    public TextureDesc(TextureDesc input)
    Parameters
    Type Name Description
    TextureDesc input
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)