mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
lsfg-vk-v3.1: cleaning up headers
This commit is contained in:
parent
778a87dd24
commit
794fbcf28c
49 changed files with 251 additions and 104 deletions
|
|
@ -5,6 +5,8 @@ project(lsfg-vk-v3.1
|
||||||
DESCRIPTION "Lossless Scaling Frame Generation v3.1"
|
DESCRIPTION "Lossless Scaling Frame Generation v3.1"
|
||||||
LANGUAGES CXX)
|
LANGUAGES CXX)
|
||||||
|
|
||||||
|
option(LDFGVK_EXCESS_DEBUG "Enable excessive debug output" OFF)
|
||||||
|
|
||||||
file(GLOB SOURCES
|
file(GLOB SOURCES
|
||||||
"src/core/*.cpp"
|
"src/core/*.cpp"
|
||||||
"src/pool/*.cpp"
|
"src/pool/*.cpp"
|
||||||
|
|
@ -33,7 +35,8 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
EXPORT_COMPILE_COMMANDS ON)
|
EXPORT_COMPILE_COMMANDS ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(LSFGVK_EXCESS_DEBUG STREQUAL "ON")
|
if(LSFGVK_EXCESS_DEBUG)
|
||||||
|
message(STATUS "LSFGVK_EXCESS_DEBUG is only compatible with clang")
|
||||||
target_compile_options(lsfg-vk-v3.1 PRIVATE
|
target_compile_options(lsfg-vk-v3.1 PRIVATE
|
||||||
-Weverything
|
-Weverything
|
||||||
# disable compat c++ flags
|
# disable compat c++ flags
|
||||||
|
|
@ -53,5 +56,5 @@ if(LSFGVK_EXCESS_DEBUG STREQUAL "ON")
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(lsfg-vk-v3.1 PROPERTIES
|
set_target_properties(lsfg-vk-v3.1 PROPERTIES
|
||||||
CMAKE_CXX_CLANG_TIDY clang-tidy)
|
CXX_CLANG_TIDY clang-tidy)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,22 @@
|
||||||
#ifndef CONTEXT_HPP
|
#pragma once
|
||||||
#define CONTEXT_HPP
|
|
||||||
|
|
||||||
|
#include "core/image.hpp"
|
||||||
|
#include "core/semaphore.hpp"
|
||||||
|
#include "core/fence.hpp"
|
||||||
|
#include "core/commandbuffer.hpp"
|
||||||
#include "shaders/alpha.hpp"
|
#include "shaders/alpha.hpp"
|
||||||
#include "shaders/beta.hpp"
|
#include "shaders/beta.hpp"
|
||||||
#include "shaders/delta.hpp"
|
#include "shaders/delta.hpp"
|
||||||
#include "shaders/gamma.hpp"
|
#include "shaders/gamma.hpp"
|
||||||
#include "shaders/generate.hpp"
|
#include "shaders/generate.hpp"
|
||||||
#include "shaders/mipmaps.hpp"
|
#include "shaders/mipmaps.hpp"
|
||||||
|
#include "utils/utils.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <array>
|
||||||
|
|
||||||
namespace LSFG {
|
namespace LSFG {
|
||||||
|
|
||||||
|
|
@ -71,5 +81,3 @@ namespace LSFG {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // CONTEXT_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef BUFFER_HPP
|
#pragma once
|
||||||
#define BUFFER_HPP
|
|
||||||
|
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
|
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <cstddef>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace LSFG::Core {
|
namespace LSFG::Core {
|
||||||
|
|
@ -69,5 +69,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // BUFFER_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef COMMANDBUFFER_HPP
|
#pragma once
|
||||||
#define COMMANDBUFFER_HPP
|
|
||||||
|
|
||||||
#include "core/commandpool.hpp"
|
#include "core/commandpool.hpp"
|
||||||
#include "core/fence.hpp"
|
#include "core/fence.hpp"
|
||||||
|
|
@ -8,6 +7,7 @@
|
||||||
|
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
@ -110,5 +110,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // COMMANDBUFFER_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef COMMANDPOOL_HPP
|
#pragma once
|
||||||
#define COMMANDPOOL_HPP
|
|
||||||
|
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
|
|
||||||
|
|
@ -41,5 +40,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // COMMANDPOOL_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef DESCRIPTORPOOL_HPP
|
#pragma once
|
||||||
#define DESCRIPTORPOOL_HPP
|
|
||||||
|
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
|
|
||||||
|
|
@ -41,5 +40,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // DESCRIPTORPOOL_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef DESCRIPTORSET_HPP
|
#pragma once
|
||||||
#define DESCRIPTORSET_HPP
|
|
||||||
|
|
||||||
#include "core/buffer.hpp"
|
#include "core/buffer.hpp"
|
||||||
#include "core/commandbuffer.hpp"
|
#include "core/commandbuffer.hpp"
|
||||||
|
|
@ -12,6 +11,10 @@
|
||||||
|
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <array>
|
||||||
|
#include <optional>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace LSFG::Core {
|
namespace LSFG::Core {
|
||||||
|
|
@ -119,5 +122,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // DESCRIPTORSET_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef DEVICE_HPP
|
#pragma once
|
||||||
#define DEVICE_HPP
|
|
||||||
|
|
||||||
#include "core/instance.hpp"
|
#include "core/instance.hpp"
|
||||||
|
|
||||||
|
|
@ -52,5 +51,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // DEVICE_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef FENCE_HPP
|
#pragma once
|
||||||
#define FENCE_HPP
|
|
||||||
|
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
|
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace LSFG::Core {
|
namespace LSFG::Core {
|
||||||
|
|
@ -61,5 +61,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // FENCE_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef IMAGE_HPP
|
#pragma once
|
||||||
#define IMAGE_HPP
|
|
||||||
|
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
|
|
||||||
|
|
@ -86,5 +85,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // IMAGE_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef INSTANCE_HPP
|
#pragma once
|
||||||
#define INSTANCE_HPP
|
|
||||||
|
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
|
@ -35,5 +34,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // INSTANCE_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef PIPELINE_HPP
|
#pragma once
|
||||||
#define PIPELINE_HPP
|
|
||||||
|
|
||||||
#include "core/commandbuffer.hpp"
|
#include "core/commandbuffer.hpp"
|
||||||
#include "core/shadermodule.hpp"
|
#include "core/shadermodule.hpp"
|
||||||
|
|
@ -54,5 +53,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // PIPELINE_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef SAMPLER_HPP
|
#pragma once
|
||||||
#define SAMPLER_HPP
|
|
||||||
|
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
|
|
||||||
|
|
@ -47,5 +46,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SAMPLER_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef SEMAPHORE_HPP
|
#pragma once
|
||||||
#define SEMAPHORE_HPP
|
|
||||||
|
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
|
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
|
@ -78,5 +78,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SEMAPHORE_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
#ifndef SHADERMODULE_HPP
|
#pragma once
|
||||||
#define SHADERMODULE_HPP
|
|
||||||
|
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
|
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <cstddef>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
@ -49,5 +50,3 @@ namespace LSFG::Core {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SHADERMODULE_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
#ifndef RESOURCEPOOL_HPP
|
#pragma once
|
||||||
#define RESOURCEPOOL_HPP
|
|
||||||
|
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
#include "core/buffer.hpp"
|
#include "core/buffer.hpp"
|
||||||
#include "core/sampler.hpp"
|
#include "core/sampler.hpp"
|
||||||
|
|
||||||
#include "vulkan/vulkan_core.h"
|
#include "vulkan/vulkan_core.h"
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
namespace LSFG::Pool {
|
namespace LSFG::Pool {
|
||||||
|
|
@ -66,5 +67,3 @@ namespace LSFG::Pool {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // RESOURCEPOOL_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,17 @@
|
||||||
#ifndef SHADERPOOL_HPP
|
#pragma once
|
||||||
#define SHADERPOOL_HPP
|
|
||||||
|
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
#include "core/pipeline.hpp"
|
#include "core/pipeline.hpp"
|
||||||
#include "core/shadermodule.hpp"
|
#include "core/shadermodule.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <cstddef>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace LSFG::Pool {
|
namespace LSFG::Pool {
|
||||||
|
|
@ -59,5 +63,3 @@ namespace LSFG::Pool {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SHADERPOOL_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,15 @@
|
||||||
#ifndef ALPHA_HPP
|
#pragma once
|
||||||
#define ALPHA_HPP
|
|
||||||
|
|
||||||
#include "core/commandbuffer.hpp"
|
#include "core/commandbuffer.hpp"
|
||||||
#include "core/descriptorset.hpp"
|
#include "core/descriptorset.hpp"
|
||||||
#include "core/image.hpp"
|
#include "core/image.hpp"
|
||||||
#include "core/pipeline.hpp"
|
#include "core/pipeline.hpp"
|
||||||
|
#include "core/sampler.hpp"
|
||||||
#include "core/shadermodule.hpp"
|
#include "core/shadermodule.hpp"
|
||||||
#include "utils/utils.hpp"
|
#include "utils/utils.hpp"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG::Shaders {
|
||||||
|
|
||||||
|
|
@ -57,5 +58,3 @@ namespace LSFG::Shaders {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ALPHA_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,16 @@
|
||||||
#ifndef BETA_HPP
|
#pragma once
|
||||||
#define BETA_HPP
|
|
||||||
|
|
||||||
|
#include "core/buffer.hpp"
|
||||||
#include "core/commandbuffer.hpp"
|
#include "core/commandbuffer.hpp"
|
||||||
#include "core/descriptorset.hpp"
|
#include "core/descriptorset.hpp"
|
||||||
#include "core/image.hpp"
|
#include "core/image.hpp"
|
||||||
#include "core/pipeline.hpp"
|
#include "core/pipeline.hpp"
|
||||||
|
#include "core/sampler.hpp"
|
||||||
#include "core/shadermodule.hpp"
|
#include "core/shadermodule.hpp"
|
||||||
#include "utils/utils.hpp"
|
#include "utils/utils.hpp"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG::Shaders {
|
||||||
|
|
||||||
|
|
@ -57,5 +59,3 @@ namespace LSFG::Shaders {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // BETA_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,18 @@
|
||||||
#ifndef DELTA_HPP
|
#pragma once
|
||||||
#define DELTA_HPP
|
|
||||||
|
|
||||||
|
#include "core/buffer.hpp"
|
||||||
#include "core/commandbuffer.hpp"
|
#include "core/commandbuffer.hpp"
|
||||||
#include "core/descriptorset.hpp"
|
#include "core/descriptorset.hpp"
|
||||||
#include "core/image.hpp"
|
#include "core/image.hpp"
|
||||||
#include "core/pipeline.hpp"
|
#include "core/pipeline.hpp"
|
||||||
|
#include "core/sampler.hpp"
|
||||||
#include "core/shadermodule.hpp"
|
#include "core/shadermodule.hpp"
|
||||||
#include "utils/utils.hpp"
|
#include "utils/utils.hpp"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG::Shaders {
|
||||||
|
|
||||||
|
|
@ -74,5 +77,3 @@ namespace LSFG::Shaders {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // DELTA_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,18 @@
|
||||||
#ifndef GAMMA_HPP
|
#pragma once
|
||||||
#define GAMMA_HPP
|
|
||||||
|
|
||||||
|
#include "core/buffer.hpp"
|
||||||
#include "core/commandbuffer.hpp"
|
#include "core/commandbuffer.hpp"
|
||||||
#include "core/descriptorset.hpp"
|
#include "core/descriptorset.hpp"
|
||||||
#include "core/image.hpp"
|
#include "core/image.hpp"
|
||||||
#include "core/pipeline.hpp"
|
#include "core/pipeline.hpp"
|
||||||
|
#include "core/sampler.hpp"
|
||||||
#include "core/shadermodule.hpp"
|
#include "core/shadermodule.hpp"
|
||||||
#include "utils/utils.hpp"
|
#include "utils/utils.hpp"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG::Shaders {
|
||||||
|
|
||||||
|
|
@ -66,5 +69,3 @@ namespace LSFG::Shaders {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // GAMMA_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,17 @@
|
||||||
#ifndef GENERATE_HPP
|
#pragma once
|
||||||
#define GENERATE_HPP
|
|
||||||
|
|
||||||
|
#include "core/buffer.hpp"
|
||||||
#include "core/commandbuffer.hpp"
|
#include "core/commandbuffer.hpp"
|
||||||
#include "core/descriptorset.hpp"
|
#include "core/descriptorset.hpp"
|
||||||
#include "core/image.hpp"
|
#include "core/image.hpp"
|
||||||
#include "core/pipeline.hpp"
|
#include "core/pipeline.hpp"
|
||||||
|
#include "core/sampler.hpp"
|
||||||
#include "core/shadermodule.hpp"
|
#include "core/shadermodule.hpp"
|
||||||
#include "utils/utils.hpp"
|
#include "utils/utils.hpp"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <vector>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG::Shaders {
|
||||||
|
|
||||||
|
|
@ -63,5 +66,3 @@ namespace LSFG::Shaders {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // GENERATE_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
#ifndef MIPMAPS_HPP
|
#pragma once
|
||||||
#define MIPMAPS_HPP
|
|
||||||
|
|
||||||
#include "core/buffer.hpp"
|
#include "core/buffer.hpp"
|
||||||
#include "core/commandbuffer.hpp"
|
#include "core/commandbuffer.hpp"
|
||||||
#include "core/descriptorset.hpp"
|
#include "core/descriptorset.hpp"
|
||||||
#include "core/image.hpp"
|
#include "core/image.hpp"
|
||||||
#include "core/pipeline.hpp"
|
#include "core/pipeline.hpp"
|
||||||
|
#include "core/sampler.hpp"
|
||||||
#include "core/shadermodule.hpp"
|
#include "core/shadermodule.hpp"
|
||||||
#include "utils/utils.hpp"
|
#include "utils/utils.hpp"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace LSFG::Shaders {
|
namespace LSFG::Shaders {
|
||||||
|
|
||||||
|
|
@ -56,5 +57,3 @@ namespace LSFG::Shaders {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // MIPMAPS_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef TRANS_HPP
|
#pragma once
|
||||||
#define TRANS_HPP
|
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
@ -15,5 +14,3 @@ namespace LSFG::Utils::Trans {
|
||||||
[[nodiscard]] std::vector<uint8_t> translateShader(std::vector<uint8_t> bytecode);
|
[[nodiscard]] std::vector<uint8_t> translateShader(std::vector<uint8_t> bytecode);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // TRANS_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,21 @@
|
||||||
#ifndef UTILS_HPP
|
#pragma once
|
||||||
#define UTILS_HPP
|
|
||||||
|
|
||||||
#include "core/commandbuffer.hpp"
|
#include "core/commandbuffer.hpp"
|
||||||
|
#include "core/commandpool.hpp"
|
||||||
#include "core/descriptorpool.hpp"
|
#include "core/descriptorpool.hpp"
|
||||||
#include "core/image.hpp"
|
#include "core/image.hpp"
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
#include "pool/resourcepool.hpp"
|
#include "pool/resourcepool.hpp"
|
||||||
#include "pool/shaderpool.hpp"
|
#include "pool/shaderpool.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <optional>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace LSFG::Utils {
|
namespace LSFG::Utils {
|
||||||
|
|
||||||
|
|
@ -100,5 +106,3 @@ namespace LSFG {
|
||||||
Pool::ResourcePool resources;
|
Pool::ResourcePool resources;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // UTILS_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
#ifndef LSFG_3_1_HPP
|
#pragma once
|
||||||
#define LSFG_3_1_HPP
|
|
||||||
|
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace LSFG {
|
namespace LSFG {
|
||||||
|
|
@ -22,8 +23,7 @@ namespace LSFG {
|
||||||
///
|
///
|
||||||
void initialize(uint64_t deviceUUID,
|
void initialize(uint64_t deviceUUID,
|
||||||
bool isHdr, float flowScale, uint64_t generationCount,
|
bool isHdr, float flowScale, uint64_t generationCount,
|
||||||
const std::function<std::vector<uint8_t>(const std::string&)>& loader
|
const std::function<std::vector<uint8_t>(const std::string&)>& loader);
|
||||||
);
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Create a new LSFG context on a swapchain.
|
/// Create a new LSFG context on a swapchain.
|
||||||
|
|
@ -89,5 +89,3 @@ namespace LSFG {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // LSFG_3_1_HPP
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
#include "core/buffer.hpp"
|
#include "core/buffer.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <memory>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
#include "core/commandbuffer.hpp"
|
#include "core/commandbuffer.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
|
#include "core/commandpool.hpp"
|
||||||
|
#include "core/fence.hpp"
|
||||||
|
#include "core/semaphore.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <optional>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
||||||
CommandBuffer::CommandBuffer(const Core::Device& device, const CommandPool& pool) {
|
CommandBuffer::CommandBuffer(const Core::Device& device, const CommandPool& pool) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
#include "core/commandpool.hpp"
|
#include "core/commandpool.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
||||||
CommandPool::CommandPool(const Core::Device& device) {
|
CommandPool::CommandPool(const Core::Device& device) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
#include "core/descriptorpool.hpp"
|
#include "core/descriptorpool.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,19 @@
|
||||||
#include "core/descriptorset.hpp"
|
#include "core/descriptorset.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
|
#include "core/descriptorpool.hpp"
|
||||||
|
#include "core/shadermodule.hpp"
|
||||||
|
#include "core/commandbuffer.hpp"
|
||||||
|
#include "core/pipeline.hpp"
|
||||||
|
#include "core/image.hpp"
|
||||||
|
#include "core/sampler.hpp"
|
||||||
|
#include "core/buffer.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
||||||
DescriptorSet::DescriptorSet(const Core::Device& device,
|
DescriptorSet::DescriptorSet(const Core::Device& device,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
#include "core/device.hpp"
|
#include "core/device.hpp"
|
||||||
|
#include "core/instance.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <memory>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,12 @@
|
||||||
#include "core/fence.hpp"
|
#include "core/fence.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
||||||
Fence::Fence(const Core::Device& device) {
|
Fence::Fence(const Core::Device& device) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
#include "core/image.hpp"
|
#include "core/image.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <memory>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
#include "core/instance.hpp"
|
#include "core/instance.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
#include "core/pipeline.hpp"
|
#include "core/pipeline.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
|
#include "core/shadermodule.hpp"
|
||||||
|
#include "core/commandbuffer.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
||||||
Pipeline::Pipeline(const Core::Device& device, const ShaderModule& shader) {
|
Pipeline::Pipeline(const Core::Device& device, const ShaderModule& shader) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
#include "core/sampler.hpp"
|
#include "core/sampler.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
||||||
Sampler::Sampler(const Core::Device& device,
|
Sampler::Sampler(const Core::Device& device,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,14 @@
|
||||||
#include "core/semaphore.hpp"
|
#include "core/semaphore.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <optional>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <memory>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
||||||
Semaphore::Semaphore(const Core::Device& device, std::optional<uint32_t> initial) {
|
Semaphore::Semaphore(const Core::Device& device, std::optional<uint32_t> initial) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,15 @@
|
||||||
#include "core/shadermodule.hpp"
|
#include "core/shadermodule.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
#include "lsfg.hpp"
|
#include "lsfg.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <utility>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
using namespace LSFG::Core;
|
using namespace LSFG::Core;
|
||||||
|
|
||||||
ShaderModule::ShaderModule(const Core::Device& device, const std::vector<uint8_t>& code,
|
ShaderModule::ShaderModule(const Core::Device& device, const std::vector<uint8_t>& code,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
#include "pool/resourcepool.hpp"
|
#include "pool/resourcepool.hpp"
|
||||||
#include "core/buffer.hpp"
|
#include "core/buffer.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
|
#include "core/sampler.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG;
|
using namespace LSFG;
|
||||||
using namespace LSFG::Pool;
|
using namespace LSFG::Pool;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,16 @@
|
||||||
#include "pool/shaderpool.hpp"
|
#include "pool/shaderpool.hpp"
|
||||||
|
#include "core/shadermodule.hpp"
|
||||||
|
#include "core/device.hpp"
|
||||||
|
#include "core/pipeline.hpp"
|
||||||
#include "utils/trans.hpp"
|
#include "utils/trans.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <cstddef>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
using namespace LSFG;
|
using namespace LSFG;
|
||||||
using namespace LSFG::Pool;
|
using namespace LSFG::Pool;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,13 @@
|
||||||
#include "shaders/alpha.hpp"
|
#include "shaders/alpha.hpp"
|
||||||
|
#include "utils/utils.hpp"
|
||||||
|
#include "core/commandbuffer.hpp"
|
||||||
|
#include "core/image.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <utility>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG::Shaders;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,14 @@
|
||||||
#include "shaders/beta.hpp"
|
#include "shaders/beta.hpp"
|
||||||
|
#include "utils/utils.hpp"
|
||||||
|
#include "core/commandbuffer.hpp"
|
||||||
|
#include "core/image.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
#include <utility>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG::Shaders;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,15 @@
|
||||||
#include "shaders/delta.hpp"
|
#include "shaders/delta.hpp"
|
||||||
|
#include "utils/utils.hpp"
|
||||||
|
#include "core/commandbuffer.hpp"
|
||||||
|
#include "core/image.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
#include <optional>
|
||||||
|
#include <utility>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG::Shaders;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,15 @@
|
||||||
#include "shaders/gamma.hpp"
|
#include "shaders/gamma.hpp"
|
||||||
|
#include "utils/utils.hpp"
|
||||||
|
#include "core/commandbuffer.hpp"
|
||||||
|
#include "core/image.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
#include <optional>
|
||||||
|
#include <utility>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG::Shaders;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,14 @@
|
||||||
#include "shaders/generate.hpp"
|
#include "shaders/generate.hpp"
|
||||||
|
#include "utils/utils.hpp"
|
||||||
|
#include "core/commandbuffer.hpp"
|
||||||
|
#include "core/image.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG::Shaders;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,13 @@
|
||||||
#include "shaders/mipmaps.hpp"
|
#include "shaders/mipmaps.hpp"
|
||||||
|
#include "utils/utils.hpp"
|
||||||
|
#include "core/image.hpp"
|
||||||
|
#include "core/commandbuffer.hpp"
|
||||||
|
|
||||||
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
#include <utility>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Shaders;
|
using namespace LSFG::Shaders;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
#include "utils/trans.hpp"
|
#include "utils/trans.hpp"
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
using namespace LSFG::Utils;
|
using namespace LSFG::Utils;
|
||||||
|
|
||||||
std::vector<uint8_t> Trans::translateShader(std::vector<uint8_t> bytecode) {
|
std::vector<uint8_t> Trans::translateShader(std::vector<uint8_t> bytecode) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue