[dxvk] Remove WIN32 check for handle type in DxvkFenceCreateInfo

On other platforms we always have a HANDLE and will return through a HANDLE anyway.

When we implement this on Linux, we can just add an `int fd` to the union and it can use that, and return it out as a HANDLE.
This commit is contained in:
Joshua Ashton 2022-08-20 23:54:36 +00:00 committed by Philip Rebohle
parent 0e4e9355cb
commit 38cd2f7290
1 changed files with 2 additions and 5 deletions

View File

@ -23,12 +23,9 @@ namespace dxvk {
uint64_t initialValue;
VkExternalSemaphoreHandleTypeFlagBits sharedType = VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_FLAG_BITS_MAX_ENUM;
union {
#ifdef _WIN32
// When we want to implement this on non-Windows platforms,
// we could add a `int fd` here, etc.
HANDLE sharedHandle = INVALID_HANDLE_VALUE;
#else
// Placeholder for other handle types, such as FD
void *dummy;
#endif
};
};