dolphin/Source/Core/VideoBackends/Vulkan
Pokechu22 0cced44142 Use `__VA_OPT__(, ) __VA_ARGS__` instead of `##__VA_ARGS__`
Per https://en.cppreference.com/w/cpp/preprocessor/replace#.23_and_.23.23_operators the `##` behavior is a nonstandard extension; this extension seems to be supported by all compilers we care about, but IntelliSense in visual studio doesn't correctly handle it, resulting in false errors in the IDE (but not when compiling).

Per https://en.cppreference.com/w/cpp/preprocessor/replace#Function-like_macros C++20 introduced a workaround, where `__VA_OPT__(, )` generates a comma if and only if `__VA_ARGS__` is non-empty.

This PR replaces all occurrences, with the exception of Externals, DSPSpy (which is not likely to be edited in MSVC and does not target C++20 currently), and JitArm64_Integer.cpp (which uses `Function(__VA_ARGS__)`, and thus does not ever need a comma).
2022-08-23 12:09:57 -07:00
..
CMakeLists.txt VideoBackends / VideoCommon: refactor Vulkan to use new SPIRV functionality 2022-06-24 18:09:53 -05:00
CommandBufferManager.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
CommandBufferManager.h Fix all uninitialized variable warnings (C26495) 2021-10-13 12:32:16 -07:00
Constants.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
ObjectCache.cpp VideoCommon: Expose SamplerState to shaders 2021-11-17 20:04:34 -08:00
ObjectCache.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
ShaderCompiler.cpp ShaderCompiler: Use compute shader header in compute shaders 2022-07-09 19:01:58 -04:00
ShaderCompiler.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
StagingBuffer.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
StagingBuffer.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
StateTracker.cpp VideoBackends / VideoCommon: allow the ability to set debug names for shaders / textures. These names are visible in applications like RenderDoc 2021-08-30 13:47:48 -05:00
StateTracker.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VKBoundingBox.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
VKBoundingBox.h VideoCommon: Abstract bounding box 2021-10-04 15:51:24 -04:00
VKMain.cpp VKMain: Remove check for macOS 10.14 2022-06-01 22:57:56 -04:00
VKPerfQuery.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VKPerfQuery.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VKPipeline.cpp VideoCommon: Better driver bug handling 2022-07-13 21:51:24 -05:00
VKPipeline.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VKRenderer.cpp VideoBackends:Multiple: Grammar fixes 2022-07-21 20:44:19 -05:00
VKRenderer.h VideoBackends: Add Metal renderer 2022-07-21 20:44:19 -05:00
VKShader.cpp VKShader: Only set shader name if supported 2022-01-31 01:17:40 -05:00
VKShader.h VideoBackends / VideoCommon: allow the ability to set debug names for shaders / textures. These names are visible in applications like RenderDoc 2021-08-30 13:47:48 -05:00
VKStreamBuffer.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VKStreamBuffer.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VKSwapChain.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VKSwapChain.h Vulkan: Remove unused swap chain functions 2022-08-17 18:16:17 -07:00
VKTexture.cpp VKTexture: Only set texture name if supported 2022-01-31 01:17:40 -05:00
VKTexture.h VideoBackends / VideoCommon: allow the ability to set debug names for shaders / textures. These names are visible in applications like RenderDoc 2021-08-30 13:47:48 -05:00
VKVertexFormat.cpp VideoCommon: Rename norm0/norm1/norm2 to normal/tangent/binormal 2022-04-22 16:54:36 -07:00
VKVertexFormat.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VKVertexManager.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VKVertexManager.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VideoBackend.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VulkanContext.cpp VideoBackends:Metal: MSAA support 2022-07-21 20:44:19 -05:00
VulkanContext.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VulkanEntryPoints.inl VulkanEntryPoints: Make vkSetDebugUtilsObjectNameEXT an instance function 2022-01-31 01:17:40 -05:00
VulkanLoader.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
VulkanLoader.h Use `__VA_OPT__(, ) __VA_ARGS__` instead of `##__VA_ARGS__` 2022-08-23 12:09:57 -07:00