diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-06-14 03:49:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-14 03:49:47 -0500 |
| commit | 2047eaf1d86839b53bb92cf79cfae8be2a568ed6 (patch) | |
| tree | b6dd8deb5f1bf6d110d71a73521a241d37c577b1 /Source/Core/VideoCommon | |
| parent | 95f6c76713e6c2a6b50f1a149a7886e72fea6ec7 (diff) | |
| parent | ca8f9b672b3d8da3e2974802e89f6c6b6e23d99e (diff) | |
Merge pull request #13671 from tygyh/Source/Remove-redundant-lambda-parameter-lists
Source: Remove redundant lambda parameter lists
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/PerformanceMetrics.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/Spirv.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/Statistics.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderX64.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.cpp | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp index f211442e96..d335ed4adb 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp @@ -53,7 +53,7 @@ std::vector<std::string> GlobalConflicts(std::string_view source) continue; } - const auto parse_identifier = [&]() { + const auto parse_identifier = [&] { const u32 start = i; for (; i < source.size(); i++) { @@ -76,7 +76,7 @@ std::vector<std::string> GlobalConflicts(std::string_view source) } else if (source[i] == '#') { - const auto parse_until_end_of_preprocessor = [&]() { + const auto parse_until_end_of_preprocessor = [&] { bool continue_until_next_newline = false; for (; i < source.size(); i++) { diff --git a/Source/Core/VideoCommon/PerformanceMetrics.cpp b/Source/Core/VideoCommon/PerformanceMetrics.cpp index 520f9d8b95..0093ed4fcb 100644 --- a/Source/Core/VideoCommon/PerformanceMetrics.cpp +++ b/Source/Core/VideoCommon/PerformanceMetrics.cpp @@ -141,7 +141,7 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale) float window_y = window_padding; float window_x = display_size.x - window_padding; - const auto clamp_window_position = [&]() { + const auto clamp_window_position = [&] { const ImVec2 position = ImGui::GetWindowPos(); const ImVec2 size = ImGui::GetWindowSize(); const float window_min_x = window_padding; diff --git a/Source/Core/VideoCommon/Spirv.cpp b/Source/Core/VideoCommon/Spirv.cpp index 6fee98b536..9583838c97 100644 --- a/Source/Core/VideoCommon/Spirv.cpp +++ b/Source/Core/VideoCommon/Spirv.cpp @@ -31,7 +31,7 @@ bool InitializeGlslang() return false; } - std::atexit([]() { glslang::FinalizeProcess(); }); + std::atexit([] { glslang::FinalizeProcess(); }); glslang_initialized = true; return true; diff --git a/Source/Core/VideoCommon/Statistics.cpp b/Source/Core/VideoCommon/Statistics.cpp index 6326aeed82..6c35ed09fd 100644 --- a/Source/Core/VideoCommon/Statistics.cpp +++ b/Source/Core/VideoCommon/Statistics.cpp @@ -323,7 +323,7 @@ void Statistics::DisplayScissor() } }; constexpr auto NUM_SCISSOR_COLUMNS = 8; - const auto draw_scissor_table_header = [&]() { + const auto draw_scissor_table_header = [&] { ImGui::TableSetupColumn("#"); ImGui::TableSetupColumn("x0"); ImGui::TableSetupColumn("y0"); @@ -413,7 +413,7 @@ void Statistics::DisplayScissor() } }; constexpr auto NUM_VIEWPORT_COLUMNS = 5; - const auto draw_viewport_table_header = [&]() { + const auto draw_viewport_table_header = [&] { ImGui::TableSetupColumn("#"); ImGui::TableSetupColumn("vx0"); ImGui::TableSetupColumn("vy0"); diff --git a/Source/Core/VideoCommon/VertexLoaderX64.cpp b/Source/Core/VideoCommon/VertexLoaderX64.cpp index c7cbf55257..70ea700fdb 100644 --- a/Source/Core/VideoCommon/VertexLoaderX64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderX64.cpp @@ -125,7 +125,7 @@ void VertexLoaderX64::ReadVertex(OpArg data, VertexComponentFormat attribute, X64Reg coords = XMM0; - const auto write_zfreeze = [&]() { // zfreeze + const auto write_zfreeze = [&] { // zfreeze if (native_format == &m_native_vtx_decl.position) { CMP(32, R(remaining_reg), Imm8(3)); diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index fb5fb41b05..46f8732c2f 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -59,7 +59,7 @@ void VideoConfig::Refresh() // invalid values. Instead, pause the video thread first, update the config and correct // it, then resume emulation, after which the video thread will detect the config has // changed and act accordingly. - const auto config_changed_callback = []() { + const auto config_changed_callback = [] { auto& system = Core::System::GetInstance(); const bool lock_gpu_thread = Core::IsRunning(system); |
