mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
gallium: New pipe_screen interface to overlay a texture on existing memory.
This commit is contained in:
parent
131a1fbc91
commit
6361d6f48d
1 changed files with 12 additions and 0 deletions
|
|
@ -89,6 +89,18 @@ struct pipe_screen {
|
|||
struct pipe_texture * (*texture_create)(struct pipe_screen *,
|
||||
const struct pipe_texture *templat);
|
||||
|
||||
/**
|
||||
* Create a new texture object, using the given template info, but on top of
|
||||
* existing memory.
|
||||
*
|
||||
* It is assumed that the buffer data is layed out according to the expected
|
||||
* by the hardware. NULL will be returned if any inconsistency is found.
|
||||
*/
|
||||
struct pipe_texture * (*texture_blanket)(struct pipe_screen *,
|
||||
const struct pipe_texture *templat,
|
||||
const unsigned *pitch,
|
||||
struct pipe_buffer *buffer);
|
||||
|
||||
void (*texture_release)(struct pipe_screen *,
|
||||
struct pipe_texture **pt);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue