AnyPS5/core/libs/prx/libSceAgcDriver/tests/BdaTests.hpp

20 lines
690 B
C++

#ifndef CORE_LIBS_PRX_LIBSCEAGCDRIVER_TESTS_BDATESTS_HPP
#define CORE_LIBS_PRX_LIBSCEAGCDRIVER_TESTS_BDATESTS_HPP
#include "prx/libSceAgcDriver/Graphics/include/Context.hpp"
#include <functional>
#include <span>
struct BdaTestAccess {
std::function<std::span<std::byte>(VkBuffer)> bytes;
std::function<VkDescriptorBufferInfo(std::uint32_t)> descriptor;
// The bytes of the buffer behind a device address, from that address on.
std::function<std::span<std::byte>(VkDeviceAddress)> addressBytes;
};
void RunBdaResourceTests(const AgcDriver::Graphics::Context& context, const BdaTestAccess& access);
void RunGuestAllocationTests();
void RunColorTargetLayoutTests();
#endif