기술 자료

Unity Engine

Unity Engine

GetCallableShaderName(RayTracingShader, int)

Returns the name of a user-defined callable Shader from within a RayTracingShader.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

Parameters


shaderIndex

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

Returns

Type

Description

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

Remarks