Files
UShaderLab/Source/UShaderLabBuilder/Private/ShaderLabIDEPrepare.h

15 lines
758 B
C

// Copyright UShaderLab. All Rights Reserved.
#pragma once
// Regenerate all `.usl` IDE authoring assets (same as the `ShaderLab.IDE.Prepare` console command): the
// generated UE_-intrinsic / transform stubs, the merged .vscode/settings.json, and the full-DSL
// .vscode/shaderlab.code-snippets.
void ShaderLabIDE_RunPrepare();
// In an interactive editor session, generate the IDE assets if they are missing (a fresh clone lacks them
// because .vscode is git-ignored). No-op in cook / -game / commandlet / unattended runs, when the assets
// already exist, or when `ShaderLab.IDE.AutoPrepare 0` disables it. Registered on OnPostEngineInit by the
// module so shader-source mappings + reflection are ready.
void ShaderLabIDE_EnsureGeneratedIfMissing();