docs.unity3d.com
    Show / Hide Table of Contents

    Struct TextureHandle

    Texture resource handle.

    Namespace: UnityEngine.Experimental.Rendering.RenderGraphModule
    Syntax
    public struct TextureHandle

    Properties

    nullHandle

    Returns a null texture handle

    Declaration
    public static TextureHandle nullHandle { get; }
    Property Value
    Type Description
    TextureHandle

    A null texture handle.

    Methods

    IsValid()

    Return true if the handle is valid.

    Declaration
    public bool IsValid()
    Returns
    Type Description
    Boolean

    True if the handle is valid.

    SetFallBackResource(TextureHandle)

    Declaration
    public void SetFallBackResource(TextureHandle texture)
    Parameters
    Type Name Description
    TextureHandle texture

    Operators

    Implicit(TextureHandle to RenderTargetIdentifier)

    Cast to RenderTargetIdentifier

    Declaration
    public static implicit operator RenderTargetIdentifier(TextureHandle texture)
    Parameters
    Type Name Description
    TextureHandle texture

    Input TextureHandle.

    Returns
    Type Description
    RenderTargetIdentifier

    Resource as a RenderTargetIdentifier.

    Implicit(TextureHandle to RTHandle)

    Cast to RTHandle

    Declaration
    public static implicit operator RTHandle(TextureHandle texture)
    Parameters
    Type Name Description
    TextureHandle texture

    Input TextureHandle.

    Returns
    Type Description
    RTHandle

    Resource as a RTHandle.

    Implicit(TextureHandle to RenderTexture)

    Cast to RenderTexture

    Declaration
    public static implicit operator RenderTexture(TextureHandle texture)
    Parameters
    Type Name Description
    TextureHandle texture

    Input TextureHandle.

    Returns
    Type Description
    RenderTexture

    Resource as a RenderTexture.

    Implicit(TextureHandle to Texture)

    Cast to Texture

    Declaration
    public static implicit operator Texture(TextureHandle texture)
    Parameters
    Type Name Description
    TextureHandle texture

    Input TextureHandle.

    Returns
    Type Description
    Texture

    Resource as a Texture.

    Extension Methods

    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
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023