rpcs3/rpcs3-tests/ps3-rsx-common.cpp

16 lines
441 B
C++
Raw Normal View History

2016-02-22 20:36:48 +00:00
#include "stdafx.h"
#include "Emu\RSX\Common\BufferUtils.h"
TEST_CLASS(rsx_common)
{
// Check UB256 size is correctly set in write_vertex_array_data_to_buffer
TEST_METHOD(ub256_upload)
{
std::vector<gsl::byte> dest_buffer(2200);
std::vector<gsl::byte> src_buffer(100000); // Big enough
2016-04-07 21:30:27 +00:00
write_vertex_array_data_to_buffer(gsl::span<gsl::byte>(dest_buffer), src_buffer.data(), 0, 550, rsx::vertex_base_type::ub256, 4, 20, 4);
2016-02-22 20:36:48 +00:00
}
};