require opencl 2.0

pull/3471/head
kallaballa 3 years ago
parent 0e00f3c231
commit 29fb14b86b
  1. 1
      README.md
  2. 3
      src/nanovg/nanovg-demo.cpp
  3. 2
      src/tetra/tetra-demo.cpp
  4. 2
      src/video/video-demo.cpp

@ -7,6 +7,7 @@ The author of the example video (which is also used for the demos videos in this
# Hardware requirements # Hardware requirements
* Support for cl_khr_gl_sharing and cl_intel_va_api_media_sharing OpenCL extensions. * Support for cl_khr_gl_sharing and cl_intel_va_api_media_sharing OpenCL extensions.
* Support for OpenCL 2.0
* If you are on a recent Intel Platform (Gen8 - Gen12) you probably need to install an alternative [compute-runtime](https://github.com/kallaballa/compute-runtime) * If you are on a recent Intel Platform (Gen8 - Gen12) you probably need to install an alternative [compute-runtime](https://github.com/kallaballa/compute-runtime)
There are currently three demos (**the preview videos are scaled down and highly compressed**): There are currently three demos (**the preview videos are scaled down and highly compressed**):

@ -1,5 +1,4 @@
#define HAVE_OPENCL 1 #define CL_TARGET_OPENCL_VERSION 200
#define CL_TARGET_OPENCL_VERSION 300
constexpr unsigned long WIDTH = 1920; constexpr unsigned long WIDTH = 1920;
constexpr unsigned long HEIGHT = 1080; constexpr unsigned long HEIGHT = 1080;

@ -1,4 +1,4 @@
#define CL_TARGET_OPENCL_VERSION 300 #define CL_TARGET_OPENCL_VERSION 200
constexpr long unsigned int WIDTH = 1920; constexpr long unsigned int WIDTH = 1920;
constexpr long unsigned int HEIGHT = 1080; constexpr long unsigned int HEIGHT = 1080;

@ -1,4 +1,4 @@
#define CL_TARGET_OPENCL_VERSION 300 #define CL_TARGET_OPENCL_VERSION 200
//WIDTH and HEIGHT have to be specified before including subsystems.hpp //WIDTH and HEIGHT have to be specified before including subsystems.hpp
constexpr long unsigned int WIDTH = 1920; constexpr long unsigned int WIDTH = 1920;

Loading…
Cancel
Save