From 17226363e78e795e790770344958e987fae8ea07 Mon Sep 17 00:00:00 2001 From: David Ryskalczyk Date: Mon, 11 Mar 2024 04:39:39 -0400 Subject: [PATCH] Fix for VULKAN_HPP_TYPESAFE_CONVERSION defined to 0 (#1806) * Fix for VULKAN_HPP_TYPESAFE_CONVERSION defined to 0 * Remove the check if VULKAN_HPP_TYPESAFE_CONVERSION actually is defined, just check if it's 1. --------- Co-authored-by: asuessenbach --- README.md | 2 +- VulkanHppGenerator.cpp | 2 +- snippets/macros.hpp | 8 +-- vulkan/vulkan_handles.hpp | 90 +++++++++++++++++----------------- vulkan/vulkan_hpp_macros.hpp | 7 +-- vulkan/vulkansc_handles.hpp | 56 ++++++++++----------- vulkan/vulkansc_hpp_macros.hpp | 7 +-- 7 files changed, 88 insertions(+), 84 deletions(-) diff --git a/README.md b/README.md index 4449a58..d222dd8 100644 --- a/README.md +++ b/README.md @@ -944,7 +944,7 @@ With this define you can specify whether the ```DispatchLoaderDynamic``` is impo #### VULKAN_HPP_TYPESAFE_CONVERSION -32-bit vulkan is not typesafe for non-dispatchable handles, so we don't allow copy constructors on this platform by default. To enable this feature on 32-bit platforms define ```VULKAN_HPP_TYPESAFE_CONVERSION```. +32-bit vulkan is not typesafe for non-dispatchable handles, so we don't allow copy constructors on this platform by default. To enable this feature on 32-bit platforms, ```#define VULKAN_HPP_TYPESAFE_CONVERSION 1```. To disable this feature on 64-bit platforms, ```#define VULKAN_HPP_TYPESAFE_CONVERSION 0```. #### VULKAN_HPP_UNEXPECTED diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 10f82c5..bbf325f 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -7582,7 +7582,7 @@ std::string VulkanHppGenerator::generateHandle( std::pair