[dxvk] Remove WIN32 check for handle type in DxvkSharedHandleInfo

The initial implementation if-deffed this, but it doesn't need to be.
This commit is contained in:
Joshua Ashton 2022-08-21 19:09:35 +00:00 committed by Philip Rebohle
parent 38cd2f7290
commit 915ec4acc2
1 changed files with 3 additions and 6 deletions

View File

@ -34,12 +34,9 @@ namespace dxvk {
DxvkSharedHandleMode mode = DxvkSharedHandleMode::None;
VkExternalMemoryHandleTypeFlagBits type = VK_EXTERNAL_MEMORY_HANDLE_TYPE_FLAG_BITS_MAX_ENUM;
union {
#ifdef _WIN32
HANDLE handle = INVALID_HANDLE_VALUE;
#else
// Placeholder for other handle types, such as FD
void *dummy;
#endif
// When we want to implement this on non-Windows platforms,
// we could add a `int fd` here, etc.
HANDLE handle = INVALID_HANDLE_VALUE;
};
};