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;
|
DxvkSharedHandleMode mode = DxvkSharedHandleMode::None;
|
||||||
VkExternalMemoryHandleTypeFlagBits type = VK_EXTERNAL_MEMORY_HANDLE_TYPE_FLAG_BITS_MAX_ENUM;
|
VkExternalMemoryHandleTypeFlagBits type = VK_EXTERNAL_MEMORY_HANDLE_TYPE_FLAG_BITS_MAX_ENUM;
|
||||||
union {
|
union {
|
||||||
#ifdef _WIN32
|
// When we want to implement this on non-Windows platforms,
|
||||||
HANDLE handle = INVALID_HANDLE_VALUE;
|
// we could add a `int fd` here, etc.
|
||||||
#else
|
HANDLE handle = INVALID_HANDLE_VALUE;
|
||||||
// Placeholder for other handle types, such as FD
|
|
||||||
void *dummy;
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user