VariantsUploadedToGpuLastFrame.UploadData
Represents a shader variant that was uploaded to the GPU driver.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Shaders
- Assembly: UnityEngine.CoreModule
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 or to a GraphicsStateCollection, in order to warm up the shader before it's used and reduce frame stutters.
Additional Resources: VariantsUploadedToGpuLastFrame, PassIdentifier, LocalKeyword, ShaderStageFlags.
Fields
Value | Description |
|---|---|
| keywords | The keywords identifying the uploaded shader variant. |
| passIdentifier | The pass identifier for the uploaded shader variant. |
| shader | The shader the uploaded shader variant belongs to. |
| stages | The shader stages of the uploaded shader variant. |
| uploadTimeInMilliseconds | The time in milliseconds spent uploading the shader variant to the GPU driver. |