[Fix] (MG_State/ProgramState): Handle version directive in shader source.

This commit is contained in:
BZLZHH
2025-11-01 10:07:36 +08:00
parent 9b0589840b
commit 8da681c720
4 changed files with 66 additions and 0 deletions
@@ -0,0 +1,17 @@
#pragma once
#include <Includes.h>
#include <MG_State/GLState/ProgramState/ShaderObject.h>
namespace MobileGL {
enum class ShaderProfile {
Core,
Compatibility,
ES,
};
namespace MG_Util {
namespace ShaderTranspiler {
void PreprocessShaderSource(ShaderStage stage, String& source);
} // namespace ShaderTranspiler
} // namespace MG_Util
} // namespace MobileGL