ShaderWarmupSetup
The rendering configuration to use when prewarming shader variants.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Struct
- Namespace: UnityEngine.Experimental.Rendering
- Assembly: UnityEngine.CoreModule
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 |
|---|---|
| vdecl | The vertex data layout to use when prewarming shader variants. |