aboutsummaryrefslogtreecommitdiff
path: root/src/render_opencl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render_opencl.h')
-rw-r--r--src/render_opencl.h23
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);