draw: add interface to notify renderer of the current view index

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9399>
This commit is contained in:
Dave Airlie 2021-03-04 13:56:22 +10:00 committed by Marge Bot
parent 9f0fd85474
commit 267d216bcb

View file

@ -99,6 +99,11 @@ struct vbuf_render {
*/
void (*set_primitive)( struct vbuf_render *, enum pipe_prim_type prim );
/**
* Notify the renderer of the current view index.
*/
void (*set_view_index)( struct vbuf_render *, unsigned view_index );
/**
* Draw indexed primitives. Note that indices are ushort. The driver
* must complete this call, if necessary splitting the index list itself.