Class BackendHelpers
Helper functions for querying the shader type and filename for a given backend.
Inherited Members
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. |