文档

Unity Engine

Unity Engine

GetCallableShaderParamSize(RayTracingShader, int)

Returns the parameter size of a user-defined callable Shader from within a RayTracingShader.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Parameters


shaderIndex

The callable Shader index for which to retrieve the parameter size.

Returns

Type

Description

intThe parameter size in bytes.

Remarks