# ShaderConstantType

> Options for the shader constant value type.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.Rendering](/engine/6000.7/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public enum ShaderConstantType
```

## Fields

| Value                                                                                        | Description                                                                                                                                                                                                          |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Matrix](/engine/6000.7/script-reference/unityengine/rendering/shaderconstanttype/matrix.md) | The shader constant is a matrix.  The related [ShaderData.ConstantInfo](/engine/6000.7/script-reference/unityeditor/shaderdata/constantinfo.md) stores the number of rows and columns.                               |
| [Struct](/engine/6000.7/script-reference/unityengine/rendering/shaderconstanttype/struct.md) | The shader constant is a struct.  The related [ShaderData.ConstantInfo](/engine/6000.7/script-reference/unityeditor/shaderdata/constantinfo.md) stores the struct's size and members.                                |
| [Vector](/engine/6000.7/script-reference/unityengine/rendering/shaderconstanttype/vector.md) | The shader constant is a vector or a scalar (a vector with one column).  The related [ShaderData.ConstantInfo](/engine/6000.7/script-reference/unityeditor/shaderdata/constantinfo.md) stores the number of columns. |
