GPU_offscreen: Add option for high bit depth.

This way we can render in HDR and read the real pixel values.
This commit is contained in:
2018-01-03 13:15:32 +01:00
parent 6b2989ae75
commit c79216d77d
9 changed files with 21 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ void GPU_framebuffer_recursive_downsample(
* - wrapper around framebuffer and texture for simple offscreen drawing
* - changes size if graphics card can't support it */
GPUOffScreen *GPU_offscreen_create(int width, int height, int samples, char err_out[256]);
GPUOffScreen *GPU_offscreen_create(int width, int height, int samples, bool high_bitdepth, char err_out[256]);
void GPU_offscreen_free(GPUOffScreen *ofs);
void GPU_offscreen_bind(GPUOffScreen *ofs, bool save);
void GPU_offscreen_unbind(GPUOffScreen *ofs, bool restore);