https://github.com/kai-kj/microcompute
A small library for gpu computing
https://github.com/kai-kj/microcompute
c glsl gpgpu gpu gpu-computing gpu-programming lua luajit opengl
Last synced: 3 months ago
JSON representation
A small library for gpu computing
- Host: GitHub
- URL: https://github.com/kai-kj/microcompute
- Owner: kai-kj
- License: mit
- Created: 2023-02-20T12:19:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T20:59:51.000Z (11 months ago)
- Last Synced: 2025-03-26T09:51:15.109Z (3 months ago)
- Topics: c, glsl, gpgpu, gpu, gpu-computing, gpu-programming, lua, luajit, opengl
- Language: C
- Homepage:
- Size: 486 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
microcompute
A small library for gpu computing
![]()
![]()
![]()
## About
A small and simple library to use compute shaders in Vulkan.
## Dependencies
For Ubuntu (tested on `22.04`):
- `build-essential`
- `libvulkan-dev`
- `vulkan-validationlayers-dev` (only for the validation layer)
- `glslang-tools` (only for the included examples)Or equivalent for other systems.
## Examples
- Array operations
- [`array.c`](https://github.com/kal39/microcompute/blob/master/examples/array.c)
- [`array.glsl`](https://github.com/kal39/microcompute/blob/master/examples/array.glsl)
- Mandelbrot renderer
- [`mandelbrot.c`](https://github.com/kal39/microcompute/blob/master/examples/mandelbrot.glsl)
- [`mandelbrot.glsl`](https://github.com/kal39/microcompute/blob/master/examples/mandelbrot.glsl)Run `make all` in `examples/` to build all examples. It requires `gcc` and `glslangValidator` to be installed.
## Documentation
- [`doc.md`](https://github.com/kal39/microcompute/blob/master/doc.md)
- [`mc.h`](https://github.com/kal39/microcompute/blob/master/mc.h) (generated using [`mini_doc_gen.py`](https://kaikitagawajones.com/projects_mini_doc_gen.html))## License
MIT (see [LICENSE](https://github.com/kal39/microcompute/blob/master/LICENSE)).