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

ShaderWarmup.WarmupShader

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

描述

用给定渲染设置准备一个着色器。

调用此函数将使用所有变体和给定渲染设置执行虚拟 one-invisible-triangle 渲染。 另请参阅:Shader.WarmupAllShaders