/* * render_opencl.h * * Created on: 25.01.2018 * Author: Superleo1810 */ #ifndef RENDER_OPENCL_H_ #define RENDER_OPENCL_H_ #include "defs.h" #include #include #include #include "sets.h" #include #include "config.h" #define OPENCL_FPU_32 0 #define OPENCL_FPU_64 1 #define OPENCL_FPU_128 2 #define MAX_SOURCE_SIZE 0xFFFF // 64 KiB #define MAX_DEVICES 4 config_t *config_opencl; cl_uint *output; cl_device_id device_id; cl_context context; cl_int ret; cl_kernel kernel_vector[MAX_DEVICES]; cl_uint num_devices; cl_device_id *devices; cl_command_queue commandQueue[MAX_DEVICES]; cl_mem outputBuffer[MAX_DEVICES]; cl_int width_cl; d64 zoom_func(d64 ft, d64 s); void init_opencl(config_t *cfg); void render_opencl(d64 x_min, d64 y_min, d64 x_max, d64 y_max); void idle_opencl(void); #endif /* RENDER_OPENCL_H_ */