docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BackendHelpers

    Helper functions for querying the shader type and filename for a given backend.

    Inheritance
    object
    BackendHelpers
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.UnifiedRayTracing
    Assembly: Unity.UnifiedRayTracing.Runtime.dll
    Syntax
    public static class BackendHelpers

    Methods

    GetFileNameOfShader(RayTracingBackend, string)

    Builds a file path with the right extension for the given RayTracingBackend.

    Declaration
    public static string GetFileNameOfShader(RayTracingBackend backend, string fileName)
    Parameters
    Type Name Description
    RayTracingBackend backend

    Backend for which the shader will be loaded.

    string fileName

    Path to the shader file, without any extension.

    Returns
    Type Description
    string

    The file path.

    GetTypeOfShader(RayTracingBackend)

    Returns the Type of shader used by the given RayTracingBackend.

    Declaration
    public static Type GetTypeOfShader(RayTracingBackend backend)
    Parameters
    Type Name Description
    RayTracingBackend backend

    Backend for which the shader will be loaded.

    Returns
    Type Description
    Type

    The Type of the shader.

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