# VariantsUploadedToGpuLastFrame.UploadData

> Represents a shader variant that was uploaded to the GPU driver.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Shaders](/engine/6000.6/script-reference/unityengine/shaders.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public readonly struct VariantsUploadedToGpuLastFrame.UploadData
```

## Remarks

This struct provides information about a shader variant that was uploaded to the GPU driver during the last frame. You can use this information to add this variant to a [ShaderVariantCollection](/engine/6000.6/script-reference/unityengine/shadervariantcollection.md) or to a [GraphicsStateCollection](/engine/6000.6/script-reference/unityengine/rendering/graphicsstatecollection.md), in order to warm up the shader before it's used and reduce frame stutters.

Additional Resources: [VariantsUploadedToGpuLastFrame](/engine/6000.6/script-reference/unityengine/shaders/variantsuploadedtogpulastframe.md), [PassIdentifier](/engine/6000.6/script-reference/unityengine/rendering/passidentifier.md), [LocalKeyword](/engine/6000.6/script-reference/unityengine/rendering/localkeyword.md), [ShaderStageFlags](/engine/6000.6/script-reference/unityengine/shaders/shaderstageflags.md).

## Fields

| Value                                                                                                                                                 | Description                                                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| [keywords](/engine/6000.6/script-reference/unityengine/shaders/variantsuploadedtogpulastframe/uploaddata/keywords.md)                                 | The keywords identifying the uploaded shader variant.                          |
| [passIdentifier](/engine/6000.6/script-reference/unityengine/shaders/variantsuploadedtogpulastframe/uploaddata/passidentifier.md)                     | The pass identifier for the uploaded shader variant.                           |
| [shader](/engine/6000.6/script-reference/unityengine/shaders/variantsuploadedtogpulastframe/uploaddata/shader.md)                                     | The shader the uploaded shader variant belongs to.                             |
| [stages](/engine/6000.6/script-reference/unityengine/shaders/variantsuploadedtogpulastframe/uploaddata/stages.md)                                     | The shader stages of the uploaded shader variant.                              |
| [uploadTimeInMilliseconds](/engine/6000.6/script-reference/unityengine/shaders/variantsuploadedtogpulastframe/uploaddata/uploadtimeinmilliseconds.md) | The time in milliseconds spent uploading the shader variant to the GPU driver. |
