mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 02:40:25 +01:00
mesa: add new driver hook for AllocTextureStorage()
This commit is contained in:
parent
b296315881
commit
2e322bb8d1
1 changed files with 9 additions and 0 deletions
|
|
@ -514,6 +514,15 @@ struct dd_function_table {
|
|||
/** Unmap texture images from user space */
|
||||
void (*UnmapTexture)( struct gl_context *ctx, struct gl_texture_object *tObj );
|
||||
|
||||
/** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
|
||||
* All the gl_texture_images in the texture object will have their
|
||||
* dimensions, format, etc. initialized already.
|
||||
*/
|
||||
GLboolean (*AllocTextureStorage)(struct gl_context *ctx,
|
||||
struct gl_texture_object *texObj,
|
||||
GLsizei levels, GLsizei width,
|
||||
GLsizei height, GLsizei depth);
|
||||
|
||||
/**
|
||||
* Note: no context argument. This function doesn't initially look
|
||||
* like it belongs here, except that the driver is the only entity
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue