Represents a shader variant that was uploaded to the GPU driver.
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.
| Property | 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. |