Experimental: this API is experimental and might be changed or removed in the future.

ShaderWarmupSetup

struct in UnityEngine.Experimental.Rendering

/

Implemented in:UnityEngine.CoreModule

Description

The rendering configuration to use when prewarming shader variants.

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

Properties

vdeclThe vertex data layout to use when prewarming shader variants.

Did you find this page useful? Please give it a rating: