GetMissShaderName(RayTracingShader, int)
Returns the name of a user-defined miss Shader from within a RayTracingShader.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static string GetMissShaderName(RayTracingShader s, int shaderIndex)
Parameters
The RayTracingShader instance.
The miss Shader index for which to retrieve the name. The miss Shaders defined in a RayTracingShader are sorted alphabetically by the Shader compiler.
Returns
Type | Description |
|---|---|
| string | The name of the miss Shader at the index passed using the "shaderIndex" argument. |
Remarks
Additional Resources: ShaderUtil.GetMissShaderCount, ShaderUtil.GetMissShaderRayPayloadSize.