cepl icon indicating copy to clipboard operation
cepl copied to clipboard

Add a way to clear buffers/gpu-array/etc

Open cbaggers opened this issue 8 years ago • 1 comments

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​);

cbaggers avatar Nov 11 '17 13:11 cbaggers

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

cbaggers avatar Nov 11 '17 13:11 cbaggers