mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[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:
parent
0e4e9355cb
commit
38cd2f7290
@ -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
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user