diff options
author | Brian <[email protected]> | 2008-02-20 13:24:52 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-20 13:24:52 -0700 |
commit | d5640a2dbdc4454d0405f2cd5b18fc49b1ca7694 (patch) | |
tree | 5e0ed97d89f54d9f40c1911f926ead5a65c7e37d /src/gallium/include | |
parent | 1d45787d4a70c55e7fa899d13b9139430e2fa3e2 (diff) |
gallium: new pipe->texture_update() function
Called whenever texture data is changed (glTexImage, glTexSubImage,
glCopyTexSubImage, etc).
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_context.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index 39f95695fb6..036c4c89649 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -206,6 +206,14 @@ struct pipe_context { void (*texture_release)(struct pipe_context *pipe, struct pipe_texture **pt); + /** + * Called when texture data is changed. + * Note: we could pass some hints about which mip levels or cube faces + * have changed... + */ + void (*texture_update)(struct pipe_context *pipe, + struct pipe_texture *texture); + /** Get a surface which is a "view" into a texture */ struct pipe_surface *(*get_tex_surface)(struct pipe_context *pipe, struct pipe_texture *texture, |