heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
69 stars 3 forks source link

Compute Shaders #40

Closed heyx3 closed 9 months ago

heyx3 commented 1 year ago
  1. Learn about OpenGL compute shaders, in particular how they're different from rendering shaders in terms of GLSL syntax and draw calls.

  2. If possible, implement compute shaders as an alternative mode of Program. Making a whole new type of resource would be a pain, for example all the uniform-setting functions would have to be rewritten, so it should be avoided unless absolutely necessary.

  3. Add functions to dispatch a compute shader, similar to GL.render_mesh().

heyx3 commented 9 months ago

Compute shaders are added! With unit tests showing them modifying buffers correctly. However, I still need to fix "Image Views" so textures can be writable as well.