Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 673 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 673 Bytes

GLcompute

Documentation

GLcompute (aka glc) is a Go library for GPGPU using OpenGL ES 3.1 compute shaders as the backend.

  • glc/ contains the actual library
  • demo/ contains a short example to get started with glc

glc/buffer.go is the most tricky part ; it uses unsafe and reflect to interface Go's safe slices with OpenGL's unsafe mmap-based GPU memory access.

The rest is basically wrappers for OpenGL objects/functions written with the help of go-gl, plus some helper functions.