snes9x/win32/CVulkan.h
2023-05-04 17:36:36 -05:00

38 lines
1.2 KiB
C++

#pragma once
#include "IS9xDisplayOutput.h"
#include "../vulkan/vulkan_context.hpp"
#include "../vulkan/vulkan_shader_chain.hpp"
#include "../vulkan/vulkan_simple_output.hpp"
#include <functional>
class CVulkan : public IS9xDisplayOutput
{
private:
HWND hWnd;
std::unique_ptr<Vulkan::Context> context;
std::vector<uint16_t> filtered_image;
std::unique_ptr<Vulkan::ShaderChain> shaderchain;
std::string current_shadername;
std::unique_ptr<Vulkan::SimpleOutput> simple_output;
vk::UniqueDescriptorPool imgui_descriptor_pool;
int current_width;
int current_height;
public:
bool InitImGui();
bool Initialize(HWND hWnd) override;
void DeInitialize() override;
void Render(SSurface Src) override;
bool ChangeRenderSize(unsigned int newWidth, unsigned int newHeight) override;
bool ApplyDisplayChanges(void) override;
bool SetFullscreen(bool fullscreen) override;
void SetSnes9xColorFormat() override;
void EnumModes(std::vector<dMode>* modeVector) override;
std::vector<ShaderParam> *GetShaderParameters(void) override;
std::function<void(const char *)> GetShaderParametersSaveFunction() override;
};