# GetCallableShaderParamSize(RayTracingShader, int)

> Returns the parameter size of a user-defined callable shader from within a RayTracingShader.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static int GetCallableShaderParamSize(RayTracingShader s, int shaderIndex)
```

### Parameters

**** (\[RayTracingShader]\(/engine/6000.3/script-reference/unityengine/rendering/raytracingshader)): The [RayTracingShader](/engine/6000.3/script-reference/unityengine/rendering/raytracingshader.md) instance.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The callable shader index for which to retrieve the parameter size.

### Returns

| Type                                                       | Description                  |
| ---------------------------------------------------------- | ---------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The parameter size in bytes. |

### Remarks

Additional Resources: [ShaderUtil.GetCallableShaderCount](/engine/6000.3/script-reference/unityeditor/shaderutil/getcallableshadercount.md), [ShaderUtil.GetCallableShaderName](/engine/6000.3/script-reference/unityeditor/shaderutil/getcallableshadername.md).
