Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetCallableShaderParamSize(RayTracingShader, int)

Returns the parameter size of a user-defined callable shader from within a RayTracingShader.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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