Documentation

Unity Engine

Download Unity

Unity Engine

completedWarmupCount

The number of graphics states and compute shader variants that Unity has warmed up.
Read time 1 minuteLast updated 21 hours ago

Definition

public int completedWarmupCount { get; }

Remarks

When a graphics state for a shader variant is "warmed up", the associated GPU representation has been created. Unity counts a compute shader variant after GraphicsStateCollection.WarmUp or GraphicsStateCollection.WarmUpProgressively processes it, including variants whose compute shader is missing, whose kernel index is invalid, or whose kernel has no compiled variant for its keywords. Unity doesn't create a GPU representation for these variants.
The maximum value is GraphicsStateCollection.totalGraphicsStateCount plus GraphicsStateCollection.computeVariantCount. When warmup falls back to the legacy ShaderVariantCollection.WarmUp, Unity counts shader variants instead of graphics states, so the maximum value is GraphicsStateCollection.variantCount plus GraphicsStateCollection.computeVariantCount.