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
+2 -2
View File
@@ -11,7 +11,7 @@ TEST(GLSLExtension, processing) {
"float sum(float a, float b) {\n"
" return a + b;\n"
"}\n",
true
true, {}
)
);
try {
@@ -27,7 +27,7 @@ TEST(GLSLExtension, processing) {
" vec4 color = texture(u_screen, v_uv);\n"
" return mix(color, 1.0 - color, p_intensity);\n"
"}\n",
false);
false, {});
std::cout << processed.code << std::endl;
} catch (const parsing_error& err) {
std::cerr << err.errorLog() << std::endl;