4 Nov
2021
4 Nov
'21
3:43 p.m.
On Thu, 4 Nov 2021 at 16:31, Zebediah Figura <zfigura(a)codeweavers.com> wrote:
That one occurred to me as well. (I wasn't sure if there was a reason it wasn't done like that in the first place. Not that wined3d_bo_vk and wined3d_bo_gl used to have anything in common, but at least "void *" would have made more sense...)
It evolved from being a GLuint containing a GL buffer object id. When the wined3d_bo_vk structure was originally introduced, that changed to being a uintptr_t containing either a pointer to a wined3d_bo_vk structure or a GL buffer object id. The wined3d_bo_gl structure is a bit more recent still, and not all of the consequences from introducing that have entirely settled yet.