add 'do-trace-shaders' setting and fix shaders recompiling

This commit is contained in:
MihailRis 2025-08-31 18:14:05 +03:00
parent 5e3373313b
commit a621b179d3
10 changed files with 84 additions and 26 deletions

View file

@ -4,6 +4,7 @@
#include <string>
#include <memory>
#include <vector>
#include <unordered_map>
#include <glm/glm.hpp>
@ -50,7 +51,7 @@ public:
void uniform4v(const std::string& name, int length, const float* v);
/// @brief Re-preprocess source code and re-compile shader program
void recompile();
void recompile(const std::vector<std::string>& defines);
/// @brief Create shader program using vertex and fragment shaders source.
/// @return linked shader program containing vertex and fragment shaders