GetRayGenerationShaderName(RayTracingShader, int)
Returns the name of a user-defined ray generation Shader from within a RayTracingShader.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static string GetRayGenerationShaderName(RayTracingShader s, int shaderIndex)
Parameters
The RayTracingShader instance.
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 |
|---|---|
| string | The name of the ray generation Shader at the index passed using the "shaderIndex" argument. |
Remarks
Additional Resources: ShaderUtil.GetRayGenerationShaderCount.