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

ShaderWarmup.WarmupShaderFromCollection

切换到手册
public static void WarmupShaderFromCollection (ShaderVariantCollection collection, Shader shader, Experimental.Rendering.ShaderWarmupSetup setup);

描述

使用给定渲染设置和集合中保存的变体准备一个着色器。

调用此函数将使用集合中引用的所有变体和给定渲染设置执行虚拟 one-invisible-triangle 渲染。 另请参阅:ShaderVariantCollection.WarmUp