diff options
| -rw-r--r-- | layers/vk_layer_logging.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/layers/vk_layer_logging.h b/layers/vk_layer_logging.h index 58947d50..a47acb04 100644 --- a/layers/vk_layer_logging.h +++ b/layers/vk_layer_logging.h @@ -383,4 +383,18 @@ static inline VKAPI_ATTR VkBool32 VKAPI_CALL win32_debug_output_msg(VkFlags msgF return false; } + +// TODO: Could be autogenerated for the specific handles for extra type safety...
+template <typename HANDLE_T>
+static inline uint64_t HandleToUint64(HANDLE_T *h) {
+ return reinterpret_cast<uint64_t>(h);
+}
+
+template <typename HANDLE_T>
+uint64_t HandleToUint64(HANDLE_T h);
+
+static inline uint64_t HandleToUint64(uint64_t h) {
+ return h;
+} + #endif // LAYER_LOGGING_H |
