diff options
author | Leonard Kugis <leonardkugis@gmail.com> | 2018-02-01 00:26:36 +0100 |
---|---|---|
committer | Leonard Kugis <leonardkugis@gmail.com> | 2018-02-01 00:26:36 +0100 |
commit | be4f2582062196dd6ecf393f55566367bc1dfa9f (patch) | |
tree | 9c80c556327097f6ab7e4b97b5b195d45167565f /src/render_opencl.h | |
parent | 28006d5fa6af63a9bc2f274e7daf7a741eaacde5 (diff) |
reorganized configs
Diffstat (limited to 'src/render_opencl.h')
-rw-r--r-- | src/render_opencl.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/src/render_opencl.h b/src/render_opencl.h index bca77ad..51945d5 100644 --- a/src/render_opencl.h +++ b/src/render_opencl.h @@ -14,6 +14,7 @@ #include <CL/cl.h> #include "sets.h" #include <math.h> +#include "config.h" #define OPENCL_FPU_32 0 #define OPENCL_FPU_64 1 @@ -22,25 +23,7 @@ #define MAX_SOURCE_SIZE 0xFFFF // 64 KiB #define MAX_DEVICES 4 -typedef struct config_opencl { - u8 fpu; - u8 fma; - GLuint tex; - d64 (*zoom_func)(d64, d64); - u8 set_func; // id, not pointer! - u32 *arr; - u32 iterations; - u32 colorFrom; - u32 colorTo; - d64 to_x; - d64 to_y; - d64 speed; - u16 width; - u16 height; - u8 renderFPS; -} OpenCLConfig; - -OpenCLConfig *config_opencl; +config_t *config_opencl; cl_double x_min_cl, x_max_cl, y_min_cl, y_max_cl; cl_double x_min_s_cl, x_max_s_cl, y_min_s_cl, y_max_s_cl; @@ -62,7 +45,7 @@ int t_old_opencl; d64 zoom_func(d64 ft, d64 s); -void init_opencl(OpenCLConfig *config); +void init_opencl(config_t *cfg); void render_opencl(void); void idle_opencl(void); void idle_opencl_dummy(void); |