GetRayGenerationShaderCount(RayTracingShader)
Returns the number of ray generation Shaders defined whitin a given RayTracingShader.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static int GetRayGenerationShaderCount(RayTracingShader s)
Parameters
The RayTracingShader instance.
Returns
Type | Description |
|---|---|
| int | The number of ray generation Shaders defined in the RayTracingShader instance passed as argument. |
Remarks
Additional Resources: ShaderUtil.GetRayGenerationShaderName.