On Thu Oct 12 13:59:14 2023 +0000, Giovanni Mascellani wrote:
I guess this can be done more efficiently with `pthread_once()` and `InitOnceExecuteOnce()`. Though it's probably not a bottleneck anyway.
Using those would require conditional compilation or a wrapper callback as they take different function definitions. Overall the mutex takes less code. Having a `vkd3d_once()` would be convenient if we ever need one-time initialisation elsewhere, but any such code could probably just be combined into a common initialisation function.