diff options
author | Neil Roberts <[email protected]> | 2014-06-10 16:11:00 +0100 |
---|---|---|
committer | Neil Roberts <[email protected]> | 2014-07-23 11:50:38 +0100 |
commit | fbbbf7529c3d99a0b2f569495033283877df8b60 (patch) | |
tree | 2fd3f756cacaf2c72466cc2263f59948246e8936 /src/mesa/main/dd.h | |
parent | 2e63f91e60376d297d883fd769713fbb5c93aadc (diff) |
mesa/main: Add generic bits of ARB_clear_texture implementation
This adds the driver entry point for glClearTexSubImage and fills in the
_mesa_ClearTexImage and _mesa_ClearTexSubImage functions that call it.
v2: Don't clear some of the images if only one of them makes an error
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r-- | src/mesa/main/dd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 633ea2c3a2e..89765351e14 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -239,6 +239,20 @@ struct dd_function_table { struct gl_texture_image *texImage ); /** + * Called by glClearTex[Sub]Image + * + * Clears a rectangular region of the image to a given value. The + * clearValue argument is either NULL or points to a single texel to use as + * the clear value in the same internal format as the texture image. If it + * is NULL then the texture should be cleared to zeroes. + */ + void (*ClearTexSubImage)(struct gl_context *ctx, + struct gl_texture_image *texImage, + GLint xoffset, GLint yoffset, GLint zoffset, + GLsizei width, GLsizei height, GLsizei depth, + const GLvoid *clearValue); + + /** * Called by glCopyTex[Sub]Image[123]D(). * * This function should copy a rectangular region in the rb to a single |