Documentation

Unity Engine

Download Unity

Unity Engine

ShaderWarmupSetup

The rendering configuration to use when prewarming shader variants.
Read time 1 minuteLast updated a month ago

Definition

Warning
Deprecated. Experimental warmup functionality is deprecated. Please use GraphicsStateCollection instead.
public struct ShaderWarmupSetup

Remarks

For information on shader loading and prewarming, including a list of different prewarming techniques, see Shader loading.
Use this with ShaderWarmup.WarmupShader and ShaderWarmup.WarmupShaderFromCollection to correctly prewarm shader variants for these graphics APIs.
Additional Resources: ShaderWarmup

Fields

Value

Description

vdeclThe vertex data layout to use when prewarming shader variants.