# GetCallableShaderCount(RayTracingShader)

> Returns the number of callable shaders defined whitin a given RayTracingShader.

## Definition

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

```csharp
public static int GetCallableShaderCount(RayTracingShader s)
```

### Parameters

**** (\[RayTracingShader]\(/engine/6000.5/script-reference/unityengine/rendering/raytracingshader)): The [RayTracingShader](/engine/6000.5/script-reference/unityengine/rendering/raytracingshader.md) instance.

### Returns

| Type                                                       | Description                                                                                                                                                              |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of callable shaders defined in the [RayTracingShader](/engine/6000.5/script-reference/unityengine/rendering/raytracingshader.md) instance passed as argument. |

### Remarks

Additional Resources: [ShaderUtil.GetCallableShaderName](/engine/6000.5/script-reference/unityeditor/shaderutil/getcallableshadername.md), [ShaderUtil.GetCallableShaderParamSize](/engine/6000.5/script-reference/unityeditor/shaderutil/getcallableshaderparamsize.md).
