PDA

View Full Version : How to clear images?



Aekold
03-28-2011, 07:25 AM
Are there any means for clearing images (introduces by ext_image_load_store extension) other than implementing an additional shader pass, which clears it manually?
Is there some analogue to glClear command?

Chris Lux
03-28-2011, 09:53 AM
attach the texture image to a FBO and use glClearBuffer{i|f|ui}.

Aekold
03-29-2011, 04:59 AM
thanks!