Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


VariantsUploadedToGpuLastFrame.UploadData

Represents a shader variant that was uploaded to the GPU driver.
Read time 1 minuteLast updated 11 days ago

Definition

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.

Fields

Value

Description

keywordsThe keywords identifying the uploaded shader variant.
passIdentifierThe pass identifier for the uploaded shader variant.
shaderThe shader the uploaded shader variant belongs to.
stagesThe shader stages of the uploaded shader variant.
uploadTimeInMillisecondsThe time in milliseconds spent uploading the shader variant to the GPU driver.