# ShaderData.VariantCompileInfo

> Represents the results of compiling a variant using ShaderData.Pass.CompileVariant.

## Definition

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

```csharp
public struct ShaderData.VariantCompileInfo
```

## Properties

| Property                                                                                                        | Description                                                                                                                                                                                                                                                               |
| --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Attributes](/engine/6000.0/script-reference/unityeditor/shaderdata/variantcompileinfo/attributes.md)           | Vertex attributes the compiled variant uses (Read Only).                                                                                                                                                                                                                  |
| [ConstantBuffers](/engine/6000.0/script-reference/unityeditor/shaderdata/variantcompileinfo/constantbuffers.md) | Constant buffers the compiled variant uses (Read Only). Some platforms don't have constant buffers; however, Unity reports all global constants/uniforms in a single constant buffer.                                                                                     |
| [Messages](/engine/6000.0/script-reference/unityeditor/shaderdata/variantcompileinfo/messages.md)               | Stores errors and warnings produced during compilation (Read Only).                                                                                                                                                                                                       |
| [ShaderData](/engine/6000.0/script-reference/unityeditor/shaderdata/variantcompileinfo/shaderdata.md)           | Stores the raw platform-specific bytecode for the compiled shader (Read Only).                                                                                                                                                                                            |
| [Success](/engine/6000.0/script-reference/unityeditor/shaderdata/variantcompileinfo/success.md)                 | Indicates whether the variant compilation succeeded (Read Only). If it did, it is true. Otherwise, this is false and [ShaderData.VariantCompileInfo.Messages](/engine/6000.0/script-reference/unityeditor/shaderdata/variantcompileinfo/messages.md) contains the errors. |
| [TextureBindings](/engine/6000.0/script-reference/unityeditor/shaderdata/variantcompileinfo/texturebindings.md) | Texture bindings the compiled variant uses (Read Only).                                                                                                                                                                                                                   |
