From 24d66d920e8d1aeca1f6f507de6e32ec51716dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Sat, 14 Sep 2024 07:44:30 +0200 Subject: [PATCH] vulkan: deleted unnecessary macro --- WickedEngine/wiGraphicsDevice_Vulkan.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/WickedEngine/wiGraphicsDevice_Vulkan.cpp b/WickedEngine/wiGraphicsDevice_Vulkan.cpp index 86183c284..50576aafd 100644 --- a/WickedEngine/wiGraphicsDevice_Vulkan.cpp +++ b/WickedEngine/wiGraphicsDevice_Vulkan.cpp @@ -30,11 +30,6 @@ #include #include -// Requires {} -#define VK_APPEND_EXT(desc) \ - *tail = &desc; \ - tail = &desc.pNext - namespace wi::graphics { @@ -5594,7 +5589,8 @@ using namespace vulkan_internal; depthClipStateInfo.depthClipEnable = VK_TRUE; if (depth_clip_enable_features.depthClipEnable == VK_TRUE) { - VK_APPEND_EXT(depthClipStateInfo); + *tail = &depthClipStateInfo; + tail = &depthClipStateInfo.pNext; } if (pso->desc.rs != nullptr) @@ -5641,7 +5637,8 @@ using namespace vulkan_internal; rasterizationConservativeState.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXT; rasterizationConservativeState.conservativeRasterizationMode = VK_CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT; rasterizationConservativeState.extraPrimitiveOverestimationSize = 0.0f; - VK_APPEND_EXT(rasterizationConservativeState); + *tail = &rasterizationConservativeState; + tail = &rasterizationConservativeState.pNext; } }