[Fix] (MG_Util/Program): Allow GLSL For Vulkan to be converted into spirv.

This commit is contained in:
BZLZHH
2025-06-21 19:34:13 +08:00
parent 6d73806d1a
commit cbf63dd2b6
2 changed files with 12 additions and 8 deletions
+4 -2
View File
@@ -173,8 +173,10 @@ namespace MG_Util::Program {
}
}
std::vector<unsigned> CompileGLSLToSPIRV(GLenum shaderType, const std::string& source, std::string& infoLog);
std::string CompileGLSLToTShader(GLenum shaderType, const std::string& source, glslang::TShader *&shader);
std::vector<unsigned> CompileGLSLToSPIRV(GLenum shaderType, const std::string& source,
std::string& infoLog, bool isVkGLSL = false);
std::string CompileGLSLToTShader(GLenum shaderType, const std::string& source,
glslang::TShader *&shader, bool isVkGLSL = false);
std::vector<std::vector<unsigned>> CompileMultipleShadersToSPIRV(const ProgramState& state, ProgramObject& prog, std::string& infoLog);
void ReflectSPIRVUniforms(const std::vector<std::vector<unsigned>>& allSpirv, ProgramObject& prog, std::string& infoLog);
std::string CompileSPIRVToGLSL(std::vector<unsigned int> spirv, uint glslVersion, bool isES);