gpu: add opencl support for macos

This allows using opencl as an alternative to opengl compute shaders on
macos, which does not support compute shaders. Now, macos can finally
use the extended draw distance feature of the gpu plugin.

This also includes code for using opencl with Windows and Linux if we
want to enable that in the future. A copy of the existing compute
shaders have been checked in and ported to opencl, keeping support for
opengl compute shaders on Windows and Linux.

Co-authored-by: Paul Norton <napkinorton@gmail.com>
This commit is contained in:
Adam
2021-02-10 21:01:53 -05:00
parent 26f26308ab
commit 13efaa6a0c
9 changed files with 1445 additions and 175 deletions

View File

@@ -177,6 +177,25 @@
<version>2.4.0-rc-20210117</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>net.runelite.jocl</groupId>
<artifactId>jocl</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>net.runelite.jocl</groupId>
<artifactId>jocl</artifactId>
<version>1.0</version>
<classifier>macos-x64</classifier>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>net.runelite.jocl</groupId>
<artifactId>jocl</artifactId>
<version>1.0</version>
<classifier>macos-arm64</classifier>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>net.runelite</groupId>
<artifactId>archive-patcher</artifactId>