mesa: add _mesa_InternalBind{ElementBuffer,VertexBuffers} for glthread
Uploaded non-VBO user data will be set via these functions. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4314>
This commit is contained in:
@@ -52,6 +52,12 @@
|
||||
struct gl_context;
|
||||
struct _mesa_HashTable;
|
||||
|
||||
struct glthread_attrib_binding {
|
||||
struct gl_buffer_object *buffer; /**< where non-VBO data was uploaded */
|
||||
int offset; /**< offset to uploaded non-VBO data */
|
||||
const void *original_pointer; /**< restore this pointer after the draw */
|
||||
};
|
||||
|
||||
struct glthread_vao {
|
||||
GLuint Name;
|
||||
GLuint CurrentElementBufferName;
|
||||
|
Reference in New Issue
Block a user