mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-07 19:58:32 +09:00
- Add SPIRV-Cross/glslang integration for uniform reflection. - Auto-detect and assign locations for uniforms/samplers. - Support most types of uniform. - Implement glUniform* functions with type safety. - Add MG_Util::Program: - GLSL-SPIRV conversion - SPIRV uniform reflection - Program uniform dumping
17 lines
445 B
C++
17 lines
445 B
C++
//
|
|
// Created by BZLZHH on 2025/5/3.
|
|
//
|
|
|
|
#ifndef MOBILEGL_PROGRAM_DEBUGTOOL_H
|
|
#define MOBILEGL_PROGRAM_DEBUGTOOL_H
|
|
#include "../../Includes.h"
|
|
|
|
namespace MG_Util::Program {
|
|
std::string GLTypeToString(GLenum type);
|
|
std::string FormatUniformValue(const UniformValue& value);
|
|
void DumpUniforms(const ProgramState& state, GLuint program);
|
|
void DumpCurrentUniforms(const ProgramState& state);
|
|
}
|
|
|
|
#endif //MOBILEGL_PROGRAM_DEBUGTOOL_H
|