Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ashton <joshua@froggi.es>2022-08-21 22:09:35 +0300
committerJoshua Ashton <joshua@froggi.es>2022-08-21 22:22:13 +0300
commit4a81890ea81a08f9d9fe94dc7e764d56b55f8e00 (patch)
tree866f0567a7773d38299c817546a1908ea413b8a0
parentfe758083d8dae8ac876b0ae133b4832dbbe744e2 (diff)
[dxvk] Remove WIN32 check for handle type in DxvkSharedHandleInfonative-pr-remove-win32-checks
The initial implementation if-deffed this, but it doesn't need to be.
-rw-r--r--src/dxvk/dxvk_memory.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/dxvk/dxvk_memory.h b/src/dxvk/dxvk_memory.h
index 795dd74d..5b8e829d 100644
--- a/src/dxvk/dxvk_memory.h
+++ b/src/dxvk/dxvk_memory.h
@@ -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;
};
};