mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
mesa/dd: Add a function for creating a texture from a buffer object
Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
adc8cdfa35
commit
3298b1235a
1 changed files with 16 additions and 0 deletions
|
|
@ -415,6 +415,22 @@ struct dd_function_table {
|
|||
struct gl_texture_object *texObj,
|
||||
struct gl_texture_object *origTexObj);
|
||||
|
||||
/** Sets the given buffer object as the texture's storage. The given
|
||||
* texture must have target GL_TEXTURE_1D, GL_TEXTURE_2D,
|
||||
* GL_TEXTURE_RECTANGLE, and GL_TEXTURE_2D_ARRAY; have only a single
|
||||
* mipmap level; be immutable; and must not have any assigned storage.
|
||||
* The format and dimensions of the gl_texture_object will already be
|
||||
* initialized.
|
||||
*
|
||||
* This function is used by the meta PBO texture upload path.
|
||||
*/
|
||||
bool (*SetTextureStorageForBufferObject)(struct gl_context *ctx,
|
||||
struct gl_texture_object *texObj,
|
||||
struct gl_buffer_object *bufferObj,
|
||||
uint32_t buffer_offset,
|
||||
uint32_t row_stride,
|
||||
bool read_only);
|
||||
|
||||
/**
|
||||
* Map a renderbuffer into user space.
|
||||
* \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue