mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
avoid symbol clashing
This commit is contained in:
parent
2fde1bbf10
commit
1576edcf1a
29 changed files with 57 additions and 27 deletions
|
|
@ -18,7 +18,9 @@
|
|||
#include <cstdint>
|
||||
#include <array>
|
||||
|
||||
namespace LSFG {
|
||||
namespace LSFG_3_1 {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
class Context {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Alpha shader.
|
||||
|
|
|
|||
|
|
@ -12,7 +12,9 @@
|
|||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Beta shader.
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@
|
|||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Delta shader.
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@
|
|||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Gamma shader.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,9 @@
|
|||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Generate shader.
|
||||
|
|
|
|||
|
|
@ -12,7 +12,9 @@
|
|||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Mipmaps shader.
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include <optional>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG;
|
||||
using namespace LSFG_3_1;
|
||||
|
||||
Context::Context(Vulkan& vk,
|
||||
int in0, int in1, const std::vector<int>& outN,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1::Shaders;
|
||||
|
||||
Alpha::Alpha(Vulkan& vk, Core::Image inImg) : inImg(std::move(inImg)) {
|
||||
// create resources
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1::Shaders;
|
||||
|
||||
Beta::Beta(Vulkan& vk, std::array<std::array<Core::Image, 4>, 3> inImgs)
|
||||
: inImgs(std::move(inImgs)) {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1::Shaders;
|
||||
|
||||
Delta::Delta(Vulkan& vk, std::array<std::array<Core::Image, 4>, 3> inImgs1,
|
||||
Core::Image inImg2,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1::Shaders;
|
||||
|
||||
Gamma::Gamma(Vulkan& vk, std::array<std::array<Core::Image, 4>, 3> inImgs1,
|
||||
Core::Image inImg2,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1::Shaders;
|
||||
|
||||
Generate::Generate(Vulkan& vk,
|
||||
Core::Image inImg1, Core::Image inImg2,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1::Shaders;
|
||||
|
||||
Mipmaps::Mipmaps(Vulkan& vk,
|
||||
Core::Image inImg_0, Core::Image inImg_1)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,9 @@
|
|||
#include <cstdint>
|
||||
#include <array>
|
||||
|
||||
namespace LSFG {
|
||||
namespace LSFG_3_1P {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
class Context {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1P::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Alpha shader.
|
||||
|
|
|
|||
|
|
@ -12,7 +12,9 @@
|
|||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1P::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Beta shader.
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@
|
|||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1P::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Delta shader.
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@
|
|||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1P::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Gamma shader.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,9 @@
|
|||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1P::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Generate shader.
|
||||
|
|
|
|||
|
|
@ -12,7 +12,9 @@
|
|||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
namespace LSFG::Shaders {
|
||||
namespace LSFG_3_1P::Shaders {
|
||||
|
||||
using namespace LSFG;
|
||||
|
||||
///
|
||||
/// Mipmaps shader.
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <cstdint>
|
||||
|
||||
using namespace LSFG;
|
||||
using namespace LSFG_3_1P;
|
||||
|
||||
Context::Context(Vulkan& vk,
|
||||
int in0, int in1, const std::vector<int>& outN,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1P::Shaders;
|
||||
|
||||
Alpha::Alpha(Vulkan& vk, Core::Image inImg) : inImg(std::move(inImg)) {
|
||||
// create resources
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1P::Shaders;
|
||||
|
||||
Beta::Beta(Vulkan& vk, std::array<std::array<Core::Image, 2>, 3> inImgs)
|
||||
: inImgs(std::move(inImgs)) {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1P::Shaders;
|
||||
|
||||
Delta::Delta(Vulkan& vk, std::array<std::array<Core::Image, 2>, 3> inImgs1,
|
||||
Core::Image inImg2,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1P::Shaders;
|
||||
|
||||
Gamma::Gamma(Vulkan& vk, std::array<std::array<Core::Image, 2>, 3> inImgs1,
|
||||
Core::Image inImg2,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1P::Shaders;
|
||||
|
||||
Generate::Generate(Vulkan& vk,
|
||||
Core::Image inImg1, Core::Image inImg2,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
using namespace LSFG::Shaders;
|
||||
using namespace LSFG_3_1P::Shaders;
|
||||
|
||||
Mipmaps::Mipmaps(Vulkan& vk,
|
||||
Core::Image inImg_0, Core::Image inImg_1)
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ LsContext::LsContext(const Hooks::DeviceInfo& info, VkSwapchainKHR swapchain,
|
|||
i, out_n_fds.at(i));
|
||||
}
|
||||
|
||||
this->isPerfMode = false;
|
||||
auto* lsfgInitialize = LSFG_3_1::initialize;
|
||||
auto* lsfgCreateContext = LSFG_3_1::createContext;
|
||||
auto* lsfgDeleteContext = LSFG_3_1::deleteContext;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue