mirror of
https://github.com/Eragon-Brisingr/UShaderLab.git
synced 2026-09-15 14:54:36 +00:00
15 lines
758 B
C
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();
|