mpottinger / gles32_compute_shader_basic

compute shader basic code with OpenGL ES 3.2 (Android & Linux)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I searched and did not find a complete code example of compute shader, so I publicized here when I finished it. And it is also a record in case that I myself may need it some time later.


To build within Linux, just run 'make'.
If there's build issue, try to install the necessary libraries, such as the following:
apt-get install libgles2-mesa-dev libegl1-mesa-dev


Steps to build within Andriod source tree.
1. cd your_path_to_android/frameworks/native/opengl/tests/

2. modify Android.bp as:
--- a/opengl/tests/Android.bp
+++ b/opengl/tests/Android.bp
@@ -1,6 +1,7 @@
 
 subdirs = [
     "angeles",
+    "gles32_compute_shader_basic",
     "configdump",
     "EGLTest",
     "fillrate",

3. git clone https://github.com/guoyejun/gles32_compute_shader_basic.git

4. cd gles32_compute_shader_basic

5. mm

About

compute shader basic code with OpenGL ES 3.2 (Android & Linux)


Languages

Language:C++ 98.3%Language:Makefile 1.7%