mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 12:32:48 +00:00
79648e1c24
It was reported that some games (Zelda Wind Waker and Zelda Twilight Princess but others may also exhibit the issue) have graphical issues with the max pixel samplers set to 16 on some Android devices (ex: Pixel6); since this was increased for a performance heavy feature (custom shaders) just disable it for now. In the future, this could be handled more elegantly
20 lines
567 B
C++
20 lines
567 B
C++
// Copyright 2023 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
namespace VideoCommon
|
|
{
|
|
#ifdef ANDROID
|
|
// Some devices seem to have graphical errors when providing 16 pixel samplers
|
|
// given the logic is for a performance heavy feature (custom shaders), will just disable for now
|
|
// TODO: handle this more elegantly
|
|
constexpr u32 MAX_PIXEL_SHADER_SAMPLERS = 8;
|
|
#else
|
|
constexpr u32 MAX_PIXEL_SHADER_SAMPLERS = 16;
|
|
#endif
|
|
constexpr u32 MAX_COMPUTE_SHADER_SAMPLERS = 8;
|
|
} // namespace VideoCommon
|