|
|
@ -1,8 +1,16 @@
|
|
|
|
#pragma once
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
|
|
|
|
#include <unordered_map>
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include "Vector4.hpp"
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef linux
|
|
|
|
#ifdef linux
|
|
|
|
#include <CL/cl.h>
|
|
|
|
#include <CL/cl.h>
|
|
|
|
#include <CL/opencl.h>
|
|
|
|
#include <CL/opencl.h>
|
|
|
|
|
|
|
|
#include <GL/glx.h>
|
|
|
|
|
|
|
|
|
|
|
|
#elif defined _WIN32
|
|
|
|
#elif defined _WIN32
|
|
|
|
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
|
|
|
|
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
|
|
|
@ -18,13 +26,6 @@
|
|
|
|
#include <OpenCL/opencl.h>
|
|
|
|
#include <OpenCL/opencl.h>
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
|
|
|
|
#include <unordered_map>
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include "Vector4.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct device {
|
|
|
|
struct device {
|
|
|
|
|
|
|
|
|
|
|
|
cl_device_id id;
|
|
|
|
cl_device_id id;
|
|
|
@ -112,4 +113,4 @@ private:
|
|
|
|
|
|
|
|
|
|
|
|
bool vr_assert(int error_code, std::string function_name);
|
|
|
|
bool vr_assert(int error_code, std::string function_name);
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|