Skip to content

Commit 6b18f83

Browse files
Use namespace scoping
1 parent 6b289ea commit 6b18f83

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

include/vengine/vulkan.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @date 12-09-2019
88
*/
99

10+
#define VE_AL vengine::algorithm
1011
#define VE_VK vengine::vulkan
1112
#define VE_VK_DE vengine::vulkan::defaults
1213
#define VE_VK_EN vengine::vulkan::enumerate
@@ -79,10 +80,10 @@ VkError VE_VK::initialize
7980
}
8081

8182
VkError VE_VK::pickPhysicalDevice
82-
(UnaryPred<VkPhysicalDevice> filter,
83-
UnaryScore<VkPhysicalDevice> score) NX
84-
{ using namespace VE_VK::enumerate;
85-
using namespace vengine::algorithm;
83+
(VE_AL::UnaryPred<VkPhysicalDevice> filter,
84+
VE_AL::UnaryScore<VkPhysicalDevice> score) NX
85+
{ using namespace VE_AL;
86+
using namespace VE_VK::enumerate;
8687
uint32_t count = 0;
8788
uptr <VkPhysicalDevice []> devices;
8889
PROPAGATE (getPhysicalDevices(count, devices));
@@ -92,6 +93,7 @@ VkError VE_VK::pickPhysicalDevice
9293
return VK_SUCCESS;
9394
}
9495

96+
#undef VE_AL
9597
#undef VE_VK
9698
#undef VE_VK_DE
9799
#undef VE_VK_EN

0 commit comments

Comments
 (0)