// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2025 lsfg-vk // SPDX-License-Identifier: GPL-3.0-or-later // // Ported into Bannerlator's compositor from WinNative (GPL-3.0-or-later), // whose LSFG port is credited to Camille LaVey / the Eden Emulator Project and // follows upstream lsfg-vk. Only the Vulkan dispatch differs: Bannerlator // resolves entry points through the renderer's own table (see lsfg_vkd.h). #pragma once #include #include "lsfg_common.hpp" namespace lsfg { class LsfgShaders; constexpr size_t LSFG_BETA_STAGES = 5; constexpr size_t LSFG_BETA_OUTPUTS = 6; class LsfgBeta { public: LsfgBeta() = default; LsfgBeta(const Device& device, const LsfgShaders& shaders, LsfgResources& resources, VkDescriptorPool descriptor_pool, LsfgImageHistory& inputs); void Dispatch(VkCommandBuffer cmdbuf, uint64_t frame_count); [[nodiscard]] LsfgImage& Output(size_t level) { return out_images[level]; } [[nodiscard]] bool Valid() const { return allocated; } private: LsfgImageHistory* inputs{}; std::array passes; std::array first_descriptor_sets{}; std::array descriptor_sets{}; LsfgImagePair temp1; LsfgImagePair temp2; std::array out_images; bool allocated{}; }; }