early-access version 1437

This commit is contained in:
pineappleEA 2021-02-10 03:04:56 +01:00
parent ccf46180a7
commit 0f198102b2
5 changed files with 14 additions and 6 deletions

View file

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 1436. This is the source code for early-access 1437.
## Legal Notice ## Legal Notice

View file

@ -144,6 +144,10 @@ Client::~Client() {
Reset(); Reset();
} }
Client::ClientData::ClientData() = default;
Client::ClientData::~ClientData() = default;
std::vector<Common::ParamPackage> Client::GetInputDevices() const { std::vector<Common::ParamPackage> Client::GetInputDevices() const {
std::vector<Common::ParamPackage> devices; std::vector<Common::ParamPackage> devices;
for (std::size_t client = 0; client < clients.size(); client++) { for (std::size_t client = 0; client < clients.size(); client++) {

View file

@ -98,6 +98,9 @@ public:
private: private:
struct ClientData { struct ClientData {
ClientData();
~ClientData();
std::string host{"127.0.0.1"}; std::string host{"127.0.0.1"};
u16 port{26760}; u16 port{26760};
std::size_t pad_index{}; std::size_t pad_index{};

View file

@ -84,8 +84,8 @@ public:
private: private:
const std::string ip; const std::string ip;
const u16 port; [[maybe_unused]] const u16 port;
const u16 pad; [[maybe_unused]] const u16 pad;
CemuhookUDP::Client* client; CemuhookUDP::Client* client;
mutable std::mutex mutex; mutable std::mutex mutex;
}; };

View file

@ -956,9 +956,10 @@ void ImageView::SetupView(const Device& device, Image& image, ImageViewType view
view_range.extent.levels, view_range.base.layer, view_range.extent.layers); view_range.extent.levels, view_range.base.layer, view_range.extent.layers);
if (!info.IsRenderTarget()) { if (!info.IsRenderTarget()) {
auto swizzle = info.Swizzle(); auto swizzle = info.Swizzle();
if (IsPixelFormatBGR(image.info.format)) { if (IsPixelFormatBGR(image.info.format) || IsPixelFormatBGR(info.format)) {
// Swap the R and B channels of the swizzle. // Explicitly swap the R and B channels of the swizzle.
std::swap(swizzle[0], swizzle[2]); swizzle[0] = SwizzleSource::R;
swizzle[2] = SwizzleSource::B;
} }
ApplySwizzle(handle, format, swizzle); ApplySwizzle(handle, format, swizzle);
} }