文档

Unity Engine

Unity Engine

ShaderWarmup

Prewarms shaders in a way that is supported by all graphics APIs.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static class ShaderWarmup

Remarks

For information on shader loading and prewarming, see Shader loading.

Static Methods

Method

Description

WarmupShaderPrewarms all shader variants for a given Shader, using a given rendering configuration.
WarmupShaderFromCollectionPrewarms the shader variants for a given Shader that are in a given ShaderVariantCollection, using a given rendering configuration.