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 <cstdint>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
namespace LSFG {
|
namespace LSFG_3_1 {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
class Context {
|
class Context {
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,9 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Alpha shader.
|
/// Alpha shader.
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,9 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Beta shader.
|
/// Beta shader.
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,9 @@
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Delta shader.
|
/// Delta shader.
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,9 @@
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Gamma shader.
|
/// Gamma shader.
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,9 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Generate shader.
|
/// Generate shader.
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,9 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Mipmaps shader.
|
/// Mipmaps shader.
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG;
|
using namespace LSFG_3_1;
|
||||||
|
|
||||||
Context::Context(Vulkan& vk,
|
Context::Context(Vulkan& vk,
|
||||||
int in0, int in1, const std::vector<int>& outN,
|
int in0, int in1, const std::vector<int>& outN,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG_3_1::Shaders;
|
||||||
|
|
||||||
Alpha::Alpha(Vulkan& vk, Core::Image inImg) : inImg(std::move(inImg)) {
|
Alpha::Alpha(Vulkan& vk, Core::Image inImg) : inImg(std::move(inImg)) {
|
||||||
// create resources
|
// create resources
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#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)
|
Beta::Beta(Vulkan& vk, std::array<std::array<Core::Image, 4>, 3> inImgs)
|
||||||
: inImgs(std::move(inImgs)) {
|
: inImgs(std::move(inImgs)) {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#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,
|
Delta::Delta(Vulkan& vk, std::array<std::array<Core::Image, 4>, 3> inImgs1,
|
||||||
Core::Image inImg2,
|
Core::Image inImg2,
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#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,
|
Gamma::Gamma(Vulkan& vk, std::array<std::array<Core::Image, 4>, 3> inImgs1,
|
||||||
Core::Image inImg2,
|
Core::Image inImg2,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG_3_1::Shaders;
|
||||||
|
|
||||||
Generate::Generate(Vulkan& vk,
|
Generate::Generate(Vulkan& vk,
|
||||||
Core::Image inImg1, Core::Image inImg2,
|
Core::Image inImg1, Core::Image inImg2,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG_3_1::Shaders;
|
||||||
|
|
||||||
Mipmaps::Mipmaps(Vulkan& vk,
|
Mipmaps::Mipmaps(Vulkan& vk,
|
||||||
Core::Image inImg_0, Core::Image inImg_1)
|
Core::Image inImg_0, Core::Image inImg_1)
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,9 @@
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
namespace LSFG {
|
namespace LSFG_3_1P {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
class Context {
|
class Context {
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,9 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1P::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Alpha shader.
|
/// Alpha shader.
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,9 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1P::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Beta shader.
|
/// Beta shader.
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,9 @@
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1P::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Delta shader.
|
/// Delta shader.
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,9 @@
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1P::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Gamma shader.
|
/// Gamma shader.
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,9 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1P::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Generate shader.
|
/// Generate shader.
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,9 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG_3_1P::Shaders {
|
||||||
|
|
||||||
|
using namespace LSFG;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Mipmaps shader.
|
/// Mipmaps shader.
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG;
|
using namespace LSFG;
|
||||||
|
using namespace LSFG_3_1P;
|
||||||
|
|
||||||
Context::Context(Vulkan& vk,
|
Context::Context(Vulkan& vk,
|
||||||
int in0, int in1, const std::vector<int>& outN,
|
int in0, int in1, const std::vector<int>& outN,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG_3_1P::Shaders;
|
||||||
|
|
||||||
Alpha::Alpha(Vulkan& vk, Core::Image inImg) : inImg(std::move(inImg)) {
|
Alpha::Alpha(Vulkan& vk, Core::Image inImg) : inImg(std::move(inImg)) {
|
||||||
// create resources
|
// create resources
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#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)
|
Beta::Beta(Vulkan& vk, std::array<std::array<Core::Image, 2>, 3> inImgs)
|
||||||
: inImgs(std::move(inImgs)) {
|
: inImgs(std::move(inImgs)) {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#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,
|
Delta::Delta(Vulkan& vk, std::array<std::array<Core::Image, 2>, 3> inImgs1,
|
||||||
Core::Image inImg2,
|
Core::Image inImg2,
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#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,
|
Gamma::Gamma(Vulkan& vk, std::array<std::array<Core::Image, 2>, 3> inImgs1,
|
||||||
Core::Image inImg2,
|
Core::Image inImg2,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG_3_1P::Shaders;
|
||||||
|
|
||||||
Generate::Generate(Vulkan& vk,
|
Generate::Generate(Vulkan& vk,
|
||||||
Core::Image inImg1, Core::Image inImg2,
|
Core::Image inImg1, Core::Image inImg2,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG_3_1P::Shaders;
|
||||||
|
|
||||||
Mipmaps::Mipmaps(Vulkan& vk,
|
Mipmaps::Mipmaps(Vulkan& vk,
|
||||||
Core::Image inImg_0, Core::Image inImg_1)
|
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));
|
i, out_n_fds.at(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this->isPerfMode = false;
|
||||||
auto* lsfgInitialize = LSFG_3_1::initialize;
|
auto* lsfgInitialize = LSFG_3_1::initialize;
|
||||||
auto* lsfgCreateContext = LSFG_3_1::createContext;
|
auto* lsfgCreateContext = LSFG_3_1::createContext;
|
||||||
auto* lsfgDeleteContext = LSFG_3_1::deleteContext;
|
auto* lsfgDeleteContext = LSFG_3_1::deleteContext;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue