mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-26 11:22:33 -06:00
5213f70230
In order to force the BGRA8 conversion on Nvidia using OpenGL, we need to forbid texture copies and views with other formats. This commit also adds a boolean relating to this, as this needs to be done only for the OpenGL api, Vulkan must remain unchanged.
16 lines
453 B
C++
16 lines
453 B
C++
// Copyright 2020 yuzu Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "video_core/surface.h"
|
|
|
|
namespace VideoCore::Surface {
|
|
|
|
bool IsViewCompatible(PixelFormat format_a, PixelFormat format_b, bool broken_views,
|
|
bool native_bgr);
|
|
|
|
bool IsCopyCompatible(PixelFormat format_a, PixelFormat format_b, bool native_bgr);
|
|
|
|
} // namespace VideoCore::Surface
|