Ai
1 Star 3 Fork 1

zhanyuan/opengl-es-compute-shader-sample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gl_wrapper.h 644 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhanyuan 提交于 2020-06-16 11:57 +08:00 . opengl es sample
#include <GLES3/gl3.h>
#include <GLES3/gl32.h>
#define UP_DIV(x, y) (((x) + (y) - (1)) / (y))
#define ROUND_UP(x, y) (((x) + (y) - (1)) / (y) * (y))
#define GL_CHECK_ERROR() \
{\
GLenum err = glGetError(); \
if (err != GL_NO_ERROR) \
{\
printf("[%s:%d] glGetError returns %d\n", __FUNCTION__, __LINE__, err); \
}\
}
GLuint GLMalloc(int width, int height, int channel);
GLuint CreateComputeProgram(const char* pComputeSource);
void GLCopyHostToDevice(float *input, GLuint textureId, int width, int height, int channel);
void GLCopyDeviceToHost(GLuint textureId, float *output, int width, int height, int channel);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zhanyuan1/opengl-es-compute-shader-sample.git
git@gitee.com:zhanyuan1/opengl-es-compute-shader-sample.git
zhanyuan1
opengl-es-compute-shader-sample
opengl-es-compute-shader-sample
master

搜索帮助