Compiles!
This commit is contained in:
10
external/parallel-rdp/ParallelRDPWrapper.cpp
vendored
10
external/parallel-rdp/ParallelRDPWrapper.cpp
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user