Compiles!

This commit is contained in:
SimoZ64
2025-05-05 22:15:45 +02:00
parent 20e8e720a6
commit b4c5c7a3e4
25 changed files with 598 additions and 422 deletions

View File

@@ -3,6 +3,8 @@
#include <memory>
#include <rdp_device.hpp>
#include <core/mmio/VI.hpp>
#include <resources/vert.spv.h>
#include <resources/frag.spv.h>
using namespace Vulkan;
using namespace RDP;
@@ -98,13 +100,11 @@ void ParallelRDP::Init(const std::shared_ptr<InstanceFactory> &factory, const st
fragLayout.sets[0].fp_mask = 1;
fragLayout.sets[0].array_size[0] = 1;
auto fullscreenQuadVert = Util::ReadFileBinary("resources/vert.spv");
auto fullscreenQuadFrag = Util::ReadFileBinary("resources/frag.spv");
auto sizeVert = fullscreenQuadVert.size();
auto sizeFrag = fullscreenQuadFrag.size();
auto sizeVert = sizeof(vertex_shader);
auto sizeFrag = sizeof(fragment_shader);
fullscreen_quad_program = wsi->get_device().request_program(
reinterpret_cast<u32 *>(fullscreenQuadVert.data()), sizeVert, reinterpret_cast<u32 *>(fullscreenQuadFrag.data()),
reinterpret_cast<const u32 *>(vertex_shader), sizeVert, reinterpret_cast<const u32 *>(fragment_shader),
sizeFrag, &vertLayout, &fragLayout);
auto aligned_rdram = reinterpret_cast<uintptr_t>(rdram);