On 6/2/22 10:04, Giovanni Mascellani wrote:
Hi,
Il 02/06/22 02:01, Zebediah Figura ha scritto:
- Calling this function will also set the log callback for libvkd3d and
- libvkd3d-shader.
What's the reasoning behind the order in which log callbacks call each other? I.e., why, for example, libvkd3d-utils sets libvkd3d and not the other way around?
The libraries use one-way dependency chains, and the callbacks reflect that. libvkd3d-utils depends on libvkd3d and libvkd3d-shader; libvkd3d depends only on libvkd3d-shader; libvkd3d-shader is standalone.
libvkd3d-utils is not a utility library for libvkd3d, but a wrapper library to provide direct d3d12 entry points for the libvkd3d and libvkd3d-shader functions not otherwise exposed as d3d12 APIs. It also provides a few default callback functions meant to be used with libvkd3d APIs.