cepl
cepl copied to clipboard
Add a way to clear buffers/gpu-array/etc
https://www.khronos.org/opengl/wiki/Buffer_Object#Clearing
void glClearBufferData(GLenum target, GLenum internalformat, GLenum format, GLenum type, const void * data);
void glClearBufferSubData(GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void * data);
Maybe unify with clear so that it works on all types.
hmm would mean that with no args means current fbo. Maybe do the whole generic/specific pattern we have for stuff like dimensions