Giovanni Mascellani (@giomasce) commented about include/vkd3d.h:
*/ VKD3D_API void vkd3d_set_log_callback(PFN_vkd3d_log callback);
+/** + * Creates a new shader cache or opens an existing one. + * + * \param name The name of the cache. In case of an on-disk cache, this is a file name. In case of a memory-only + * cache, opening the same name again in the same process will return the same vkd3d_shader_cache handle. + * Cache handles are reference counted, so vkd3d_shader_cache_close has to be called for each successful + * vkd3d_shader_cache_open invocation. Is it allowed to open the same file more than once in the same process? From different processes? What happens if you use a different name for the same file, e.g. because of a non canonical path, symlinks, hardlinks?
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/541#note_57172