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