2023-02-10 00:28:06 -06:00
|
|
|
// Copyright 2023 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
|
|
|
namespace VideoCommon
|
|
|
|
{
|
2023-12-21 00:22:16 -06:00
|
|
|
#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
|
2023-12-09 15:07:35 -06:00
|
|
|
constexpr u32 MAX_PIXEL_SHADER_SAMPLERS = 16;
|
2023-12-21 00:22:16 -06:00
|
|
|
#endif
|
2023-06-10 12:35:36 -05:00
|
|
|
constexpr u32 MAX_COMPUTE_SHADER_SAMPLERS = 8;
|
|
|
|
} // namespace VideoCommon
|