Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetRayGenerationShaderName(RayTracingShader, int)

Returns the name of a user-defined ray generation Shader from within a RayTracingShader.
Read time 1 minuteLast updated 15 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static string GetRayGenerationShaderName(RayTracingShader s, int shaderIndex)

Parameters


shaderIndex

The ray generation Shader index for which to retrieve the name. The ray generation Shaders defined in a RayTracingShader are sorted alphabetically by the Shader compiler.

Returns

Type

Description

stringThe name of the ray generation Shader at the index passed using the "shaderIndex" argument.

Remarks