mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-16 06:40:03 +00:00
7d904fef2e
Intel and AMD proprietary drivers are incapable of rendering to texture views of different formats than the original texture. Avoid creating these at a cache level. This will consume more memory, emulating them with copies.
16 lines
397 B
C++
16 lines
397 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 IsCopyCompatible(PixelFormat format_a, PixelFormat format_b);
|
|
|
|
} // namespace VideoCore::Surface
|