Avoid unnecessary version_get_uniform() calls

This commit is contained in:
Marcos Casagrande
2025-04-28 14:27:26 +02:00
parent 1b4ed4c038
commit 19540a0758
4 changed files with 43 additions and 45 deletions

View File

@ -30,13 +30,13 @@ protected:
R"<!>(
precision highp float;
precision highp int;
/* clang-format on */
layout(location = 0) in highp vec3 vertex;
out highp vec4 position_interp;
void main() {
position_interp = vec4(vertex.x,1,0,1);
position_interp = vec4(vertex.x, 1, 0, 1);
}
)<!>"

View File

@ -5,7 +5,6 @@ R"<!>(#[compute]
#VERSION_DEFINES
#define M_PI 3.14159265359
void main() {

View File

@ -12,9 +12,8 @@ lines = "#define MODE_LINES";
layout(location = 0) out vec3 uv_interp;
void main() {
#ifdef MODE_LINES
uv_interp = vec3(0,0,1);
uv_interp = vec3(0, 0, 1);
#endif
}
@ -29,7 +28,7 @@ void main() {
layout(location = 0) out vec4 dst_color;
void main() {
dst_color = vec4(1,1,0,0);
dst_color = vec4(1, 1, 0, 0);
}
)<!>"
};