Move vulkan to common/video.

This commit is contained in:
BearOso 2024-08-10 17:41:47 -05:00
parent 9f7173f819
commit 1773782575
37 changed files with 82 additions and 83 deletions

View File

@ -11,7 +11,7 @@
#include <map>
#include "glsl.h"
#include "shader_helpers.h"
#include "vulkan/slang_helpers.hpp"
#include "common/video/vulkan/slang_helpers.hpp"
#include "shader_platform.h"
#ifndef _MSC_VER
#include <unistd.h>

View File

@ -8,7 +8,7 @@
#define __GLSL_H
#include "snes9x.h"
#include "vulkan/slang_preset_ini.hpp"
#include "common/video/vulkan/slang_preset_ini.hpp"
#include "shader_platform.h"
#include <deque>
#include <limits.h>

View File

@ -1,5 +1,5 @@
#include "slang_preset.hpp"
#include "../external/SPIRV-Cross/spirv.hpp"
#include "external/SPIRV-Cross/spirv.hpp"
#include "slang_helpers.hpp"
#include "slang_preset_ini.hpp"
@ -12,8 +12,8 @@
#include <fstream>
#include <filesystem>
#include <future>
#include "../external/SPIRV-Cross/spirv_cross.hpp"
#include "../external/SPIRV-Cross/spirv_glsl.hpp"
#include "external/SPIRV-Cross/spirv_cross.hpp"
#include "external/SPIRV-Cross/spirv_glsl.hpp"
#include "slang_shader.hpp"
using std::string;

View File

@ -7,9 +7,9 @@
#include <sstream>
#include <vector>
#include <fstream>
#include "../external/glslang/glslang/Public/ShaderLang.h"
#include "../external/glslang/SPIRV/GlslangToSpv.h"
#include "../external/glslang/glslang/Public/ResourceLimits.h"
#include "external/glslang/glslang/Public/ShaderLang.h"
#include "external/glslang/SPIRV/GlslangToSpv.h"
#include "external/glslang/glslang/Public/ResourceLimits.h"
using std::string;
using std::vector;

View File

@ -8,8 +8,8 @@
#define WINVER 0x599
#endif
#include <cstdint>
#include "vulkan/vulkan_hpp_wrapper.hpp"
#include "../external/VulkanMemoryAllocator-Hpp/include/vk_mem_alloc.hpp"
#include "vulkan_hpp_wrapper.hpp"
#include "external/VulkanMemoryAllocator-Hpp/include/vk_mem_alloc.hpp"
#include "vulkan_swapchain.hpp"
#include <memory>

View File

@ -1,5 +1,5 @@
#pragma once
#include "vulkan/vulkan_hpp_wrapper.hpp"
#include "vulkan_hpp_wrapper.hpp"
#include "slang_shader.hpp"
#include "vulkan_context.hpp"
#include "vulkan_pipeline_image.hpp"

View File

@ -1,6 +1,6 @@
#pragma once
#include "vulkan/vulkan_hpp_wrapper.hpp"
#include "vulkan_hpp_wrapper.hpp"
#include <functional>
namespace Vulkan

View File

@ -71,16 +71,16 @@ list(APPEND SOURCES src/gtk_display_driver_opengl.cpp
../common/video/opengl/glx_context.cpp
../common/video/opengl/shaders/glsl.cpp
../common/video/opengl/shaders/shader_helpers.cpp
../vulkan/slang_helpers.cpp
../vulkan/slang_helpers.hpp
../vulkan/slang_preset_ini.cpp
../vulkan/slang_preset_ini.hpp
../common/video/vulkan/slang_helpers.cpp
../common/video/vulkan/slang_helpers.hpp
../common/video/vulkan/slang_preset_ini.cpp
../common/video/vulkan/slang_preset_ini.hpp
../external/glad/src/glx.c
../external/glad/src/egl.c
../external/glad/src/gl.c
src/gtk_shader_parameters.cpp
../vulkan/std_chrono_throttle.cpp
../vulkan/std_chrono_throttle.hpp)
../common/video/std_chrono_throttle.cpp
../common/video/std_chrono_throttle.hpp)
list(APPEND INCLUDES ../external/glad/include)
if(USE_SLANG)
@ -116,26 +116,26 @@ if(USE_SLANG)
list(APPEND INCLUDES ../external/VulkanMemoryAllocator-Hpp/include)
list(APPEND INCLUDES ../external/stb)
list(APPEND SOURCES ../external/stb/stb_image_implementation.cpp)
list(APPEND SOURCES ../vulkan/slang_shader.cpp
../vulkan/slang_shader.hpp
../vulkan/slang_preset.cpp
../vulkan/slang_preset.hpp
../vulkan/vulkan_hpp_storage.cpp
../vulkan/vk_mem_alloc_implementation.cpp
../vulkan/vulkan_context.cpp
../vulkan/vulkan_context.hpp
../vulkan/vulkan_texture.cpp
../vulkan/vulkan_texture.hpp
../vulkan/vulkan_swapchain.cpp
../vulkan/vulkan_swapchain.hpp
../vulkan/vulkan_slang_pipeline.cpp
../vulkan/vulkan_slang_pipeline.hpp
../vulkan/vulkan_pipeline_image.cpp
../vulkan/vulkan_pipeline_image.hpp
../vulkan/vulkan_shader_chain.cpp
../vulkan/vulkan_shader_chain.hpp
../vulkan/vulkan_simple_output.hpp
../vulkan/vulkan_simple_output.cpp
list(APPEND SOURCES ../common/video/vulkan/slang_shader.cpp
../common/video/vulkan/slang_shader.hpp
../common/video/vulkan/slang_preset.cpp
../common/video/vulkan/slang_preset.hpp
../common/video/vulkan/vulkan_hpp_storage.cpp
../common/video/vulkan/vk_mem_alloc_implementation.cpp
../common/video/vulkan/vulkan_context.cpp
../common/video/vulkan/vulkan_context.hpp
../common/video/vulkan/vulkan_texture.cpp
../common/video/vulkan/vulkan_texture.hpp
../common/video/vulkan/vulkan_swapchain.cpp
../common/video/vulkan/vulkan_swapchain.hpp
../common/video/vulkan/vulkan_slang_pipeline.cpp
../common/video/vulkan/vulkan_slang_pipeline.hpp
../common/video/vulkan/vulkan_pipeline_image.cpp
../common/video/vulkan/vulkan_pipeline_image.hpp
../common/video/vulkan/vulkan_shader_chain.cpp
../common/video/vulkan/vulkan_shader_chain.hpp
../common/video/vulkan/vulkan_simple_output.hpp
../common/video/vulkan/vulkan_simple_output.cpp
src/gtk_display_driver_vulkan.cpp
src/gtk_display_driver_vulkan.h
../external/imgui/imgui_impl_vulkan.cpp)
@ -388,16 +388,16 @@ target_compile_definitions(snes9x-gtk PRIVATE ${DEFINES})
if(USE_SLANG)
add_executable(slang_test EXCLUDE_FROM_ALL
../vulkan/slang_helpers.cpp
../vulkan/slang_helpers.hpp
../vulkan/slang_shader.cpp
../vulkan/slang_shader.hpp
../vulkan/slang_preset.cpp
../vulkan/slang_preset.hpp
../vulkan/slang_preset_ini.cpp
../vulkan/slang_preset_ini.hpp
../vulkan/vulkan_hpp_storage.cpp
../vulkan/slang_preset_test.cpp
../common/video/vulkan/slang_helpers.cpp
../common/video/vulkan/slang_helpers.hpp
../common/video/vulkan/slang_shader.cpp
../common/video/vulkan/slang_shader.hpp
../common/video/vulkan/slang_preset.cpp
../common/video/vulkan/slang_preset.hpp
../common/video/vulkan/slang_preset_ini.cpp
../common/video/vulkan/slang_preset_ini.hpp
../common/video/vulkan/vulkan_hpp_storage.cpp
../common/video/vulkan/slang_preset_test.cpp
../conffile.cpp
../stream.cpp)

View File

@ -23,7 +23,7 @@
#endif
#include "common/video/opengl/shaders/glsl.h"
#include "vulkan/std_chrono_throttle.hpp"
#include "common/video/std_chrono_throttle.hpp"
#define BUFFER_OFFSET(i) ((char *)(i))

View File

@ -7,10 +7,10 @@
#pragma once
#include "gtk_s9x.h"
#include "gtk_display_driver.h"
#include "vulkan/vulkan_context.hpp"
#include "vulkan/vulkan_shader_chain.hpp"
#include "vulkan/vulkan_simple_output.hpp"
#include "vulkan/std_chrono_throttle.hpp"
#include "common/video/vulkan/vulkan_context.hpp"
#include "common/video/vulkan/vulkan_shader_chain.hpp"
#include "common/video/vulkan/vulkan_simple_output.hpp"
#include "common/video/std_chrono_throttle.hpp"
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
#include "common/video/wayland/wayland_surface.hpp"

View File

@ -254,32 +254,32 @@ list(APPEND INCLUDES
../external/stb
"../external/glad/include")
list(APPEND SOURCES
../vulkan/slang_shader.cpp
../vulkan/slang_shader.hpp
../vulkan/slang_preset.cpp
../vulkan/slang_preset.hpp
../vulkan/vulkan_hpp_storage.cpp
../vulkan/vk_mem_alloc_implementation.cpp
../vulkan/vulkan_context.cpp
../vulkan/vulkan_context.hpp
../vulkan/vulkan_texture.cpp
../vulkan/vulkan_texture.hpp
../vulkan/vulkan_swapchain.cpp
../vulkan/vulkan_swapchain.hpp
../vulkan/vulkan_slang_pipeline.cpp
../vulkan/vulkan_slang_pipeline.hpp
../vulkan/vulkan_pipeline_image.cpp
../vulkan/vulkan_pipeline_image.hpp
../vulkan/vulkan_shader_chain.cpp
../vulkan/vulkan_shader_chain.hpp
../vulkan/vulkan_simple_output.hpp
../vulkan/vulkan_simple_output.cpp
../vulkan/std_chrono_throttle.cpp
../vulkan/std_chrono_throttle.hpp
../vulkan/slang_helpers.cpp
../vulkan/slang_helpers.hpp
../vulkan/slang_preset_ini.cpp
../vulkan/slang_preset_ini.hpp
../common/video/vulkan/slang_shader.cpp
../common/video/vulkan/slang_shader.hpp
../common/video/vulkan/slang_preset.cpp
../common/video/vulkan/slang_preset.hpp
../common/video/vulkan/vulkan_hpp_storage.cpp
../common/video/vulkan/vk_mem_alloc_implementation.cpp
../common/video/vulkan/vulkan_context.cpp
../common/video/vulkan/vulkan_context.hpp
../common/video/vulkan/vulkan_texture.cpp
../common/video/vulkan/vulkan_texture.hpp
../common/video/vulkan/vulkan_swapchain.cpp
../common/video/vulkan/vulkan_swapchain.hpp
../common/video/vulkan/vulkan_slang_pipeline.cpp
../common/video/vulkan/vulkan_slang_pipeline.hpp
../common/video/vulkan/vulkan_pipeline_image.cpp
../common/video/vulkan/vulkan_pipeline_image.hpp
../common/video/vulkan/vulkan_shader_chain.cpp
../common/video/vulkan/vulkan_shader_chain.hpp
../common/video/vulkan/vulkan_simple_output.hpp
../common/video/vulkan/vulkan_simple_output.cpp
../common/video/std_chrono_throttle.cpp
../common/video/std_chrono_throttle.hpp
../common/video/vulkan/slang_helpers.cpp
../common/video/vulkan/slang_helpers.hpp
../common/video/vulkan/slang_preset_ini.cpp
../common/video/vulkan/slang_preset_ini.hpp
../external/stb/stb_image_implementation.cpp
../common/video/opengl/shaders/glsl.cpp
../common/video/opengl/shaders/slang.cpp

View File

@ -1,7 +1,7 @@
#pragma once
#include <QWidget>
#include <QImage>
#include "../../vulkan/std_chrono_throttle.hpp"
#include "common/video/std_chrono_throttle.hpp"
class EmuConfig;

View File

@ -4,7 +4,6 @@
#include <QtEvents>
#include <QMessageBox>
#include "EmuCanvasVulkan.hpp"
#include "src/ShaderParametersDialog.hpp"
#include "EmuMainWindow.hpp"
#include "snes9x_imgui.h"

View File

@ -3,8 +3,8 @@
#include "EmuCanvas.hpp"
#include "ShaderParametersDialog.hpp"
#include "../../vulkan/vulkan_simple_output.hpp"
#include "../../vulkan/vulkan_shader_chain.hpp"
#include "common/video/vulkan/vulkan_simple_output.hpp"
#include "common/video/vulkan/vulkan_shader_chain.hpp"
#ifndef _WIN32
#include "common/video/wayland/wayland_surface.hpp"