From afc9aec314920265918c569a80b457a3b170d92b Mon Sep 17 00:00:00 2001 From: Marcel Plch Date: Sun, 10 Nov 2024 12:59:35 +0100 Subject: [PATCH] Clean up trailing whitespace --- shaders/SimpleFragmentShader.fragmentshader | 2 +- src/neural.c | 4 ++-- src/tensor.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shaders/SimpleFragmentShader.fragmentshader b/shaders/SimpleFragmentShader.fragmentshader index d426a82..e255b47 100644 --- a/shaders/SimpleFragmentShader.fragmentshader +++ b/shaders/SimpleFragmentShader.fragmentshader @@ -3,7 +3,7 @@ in vec3 colorF; out vec3 color; -void main() { +void main() { color = colorF; } diff --git a/src/neural.c b/src/neural.c index 90f05e3..3d2984e 100644 --- a/src/neural.c +++ b/src/neural.c @@ -43,7 +43,7 @@ neural_new(size_t input_size, size_t output_size, size_t layer_count) { + (layer_diff * i / ((ssize_t)layer_count-1)), i < (layer_count-1) ? - (input_size + (layer_diff * (i+1) + (input_size + (layer_diff * (i+1) / ((ssize_t)layer_count-1))) : 0); } @@ -205,7 +205,7 @@ neural_getMesh(Neural_Network *nn, ModelRegistry *mr) { for (int j = 0; j < nn->layer_count; j++) { Neural_Layer *nl = nn->layers[j]; for (int i = 0; i < nl->layer_size; i++) { - unsigned int brightness; + unsigned int brightness; for (int k = 0; k < nl->layer_size_next; k++) { model = model_line((-.90) + ((GLfloat)2 * i * .90/(nl->layer_size-1)), diff --git a/src/tensor.c b/src/tensor.c index 878986a..e3601df 100644 --- a/src/tensor.c +++ b/src/tensor.c @@ -25,7 +25,7 @@ tensor_fromVertexBuffer(float *buffer, size_t bufsize) { mat_width = bufsize; mat = tensor_new(4, mat_width); - + for (int i = 0; i < bufsize; i++) { for (int j = 0; j < 4; j++) { mat->data[j*mat_width+i] = buffer[i*4+j];