Shader Warmup All Shaders#
Rendering / Shader / Shader Warmup All Shaders
Description#
Executes the Warmup All Shaders static method of the Shader class
Code#
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Title("Shader Warmup All Shaders")]
[Category("Rendering/Shader/Warmup All Shaders")]
[Description("Executes the Warmup All Shaders static method of the Shader class")]
[Image(typeof(IconShader), ColorTheme.Type.Yellow)]
[Keywords("Shader, Global, Material, Keyword")]
[Serializable]
public class GenInstructionShader_WarmupAllShaders_0 : Instruction
{
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Shader");
string method = TextUtils.ThemeAsKeyword("Warmup All Shaders");
return $"{className} {method}";
}
protected override Awaitable Run(Args args)
{
Shader.WarmupAllShaders();
return Done;
}
}
}