mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 07:05:40 +12:00
A lot of the architecture of the emulator here does not allow for vulkan to initialize easily since it involves a bit of data to be exchanged between SDL and Vulkan. This commit just adds the foundational linkage and library code for vulkan support.
18 lines
No EOL
637 B
C++
18 lines
No EOL
637 B
C++
#include "renderer.hpp"
|
|
#include "vulkan_api.hpp"
|
|
|
|
class GPU;
|
|
|
|
class RendererVK final : public Renderer {
|
|
public:
|
|
RendererVK(GPU& gpu, const std::array<u32, regNum>& internalRegs);
|
|
~RendererVK() override;
|
|
|
|
void reset() override;
|
|
void display() override;
|
|
void initGraphicsContext() override;
|
|
void clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) override;
|
|
void displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) override;
|
|
void drawVertices(PICA::PrimType primType, std::span<const PICA::Vertex> vertices) override;
|
|
void screenshot(const std::string& name) override;
|
|
}; |