refactor: clean unused variables
This commit is contained in:
+3
-2
@@ -18,6 +18,7 @@ uniform sampler2D iTex6;
|
|||||||
uniform sampler2D iTex7;
|
uniform sampler2D iTex7;
|
||||||
uniform sampler2D iTex8;
|
uniform sampler2D iTex8;
|
||||||
uniform sampler2D iTex9;
|
uniform sampler2D iTex9;
|
||||||
|
uniform int iFPS;
|
||||||
uniform int iInputFPS1;
|
uniform int iInputFPS1;
|
||||||
uniform int iInputFPS2;
|
uniform int iInputFPS2;
|
||||||
|
|
||||||
@@ -132,8 +133,8 @@ void main() {
|
|||||||
t += write_5(uv3, vec2(33.5,8), texts[7]);
|
t += write_5(uv3, vec2(33.5,8), texts[7]);
|
||||||
|
|
||||||
f += rect(uv3, vec2(35, 6.75), vec2(2.8, 0.7));
|
f += rect(uv3, vec2(35, 6.75), vec2(2.8, 0.7));
|
||||||
t += write_int(uv3, vec2(32.4,6.25), iFPS, 2);
|
t += write_int(uv3, vec2(32.4,6.1), iFPS, 2);
|
||||||
t += write_5(uv3, vec2(34.9,6.25), texts[8]);
|
t += write_5(uv3, vec2(34.9,6.1), texts[8]);
|
||||||
|
|
||||||
fragColor = mix(c, vec4(min(1, f) - t), min(1, f));
|
fragColor = mix(c, vec4(min(1, f) - t), min(1, f));
|
||||||
}
|
}
|
||||||
@@ -6,8 +6,6 @@
|
|||||||
#ifndef INC_DEBUG
|
#ifndef INC_DEBUG
|
||||||
#define INC_DEBUG
|
#define INC_DEBUG
|
||||||
|
|
||||||
uniform int iFPS;
|
|
||||||
|
|
||||||
uniform vec2 iInputResolution1;
|
uniform vec2 iInputResolution1;
|
||||||
uniform vec2 iInputResolution2;
|
uniform vec2 iInputResolution2;
|
||||||
uniform int iInputFormat1;
|
uniform int iInputFormat1;
|
||||||
|
|||||||
@@ -61,8 +61,6 @@ static void init_context(const Parameters *params) {
|
|||||||
state_init(context, &project.state_config, params->demo, params->auto_random,
|
state_init(context, &project.state_config, params->demo, params->auto_random,
|
||||||
params->auto_random_cycle, params->base_tempo, params->load_state);
|
params->auto_random_cycle, params->base_tempo, params->load_state);
|
||||||
|
|
||||||
context->monitor = params->monitor;
|
|
||||||
|
|
||||||
memset(context->input_resolutions, 0, sizeof(context->input_resolutions));
|
memset(context->input_resolutions, 0, sizeof(context->input_resolutions));
|
||||||
memset(context->input_formats, 0, sizeof(context->input_formats));
|
memset(context->input_formats, 0, sizeof(context->input_formats));
|
||||||
memset(context->input_fps, 0, sizeof(context->input_fps));
|
memset(context->input_fps, 0, sizeof(context->input_fps));
|
||||||
|
|||||||
+1
-5
@@ -171,13 +171,10 @@ typedef struct Tempo {
|
|||||||
|
|
||||||
typedef struct SharedContext {
|
typedef struct SharedContext {
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
vec2 resolution;
|
vec2 resolution;
|
||||||
vec2 tex_resolution;
|
vec2 tex_resolution;
|
||||||
vec2 input_resolutions[MAX_VIDEO];
|
vec2 input_resolutions[MAX_VIDEO];
|
||||||
|
|
||||||
double time;
|
double time;
|
||||||
unsigned int fps;
|
|
||||||
Tempo tempo;
|
Tempo tempo;
|
||||||
double tempo_total;
|
double tempo_total;
|
||||||
UintArray state;
|
UintArray state;
|
||||||
@@ -189,8 +186,7 @@ typedef struct SharedContext {
|
|||||||
bool auto_random;
|
bool auto_random;
|
||||||
unsigned int auto_random_cycle;
|
unsigned int auto_random_cycle;
|
||||||
unsigned int seeds[MAX_FRAG];
|
unsigned int seeds[MAX_FRAG];
|
||||||
bool monitor;
|
unsigned int fps;
|
||||||
|
|
||||||
unsigned int input_formats[MAX_VIDEO];
|
unsigned int input_formats[MAX_VIDEO];
|
||||||
unsigned int input_fps[MAX_VIDEO];
|
unsigned int input_fps[MAX_VIDEO];
|
||||||
bool stop;
|
bool stop;
|
||||||
|
|||||||
Reference in New Issue
Block a user