mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 10:50:01 +00:00
VideoCommon: add constant value to set the allowed maximum number of pixel samplers
This commit is contained in:
parent
a88e5ef390
commit
af313f8419
18 changed files with 62 additions and 36 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "Common/BitField.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "VideoBackends/D3D/D3DBase.h"
|
||||
#include "VideoCommon/Constants.h"
|
||||
#include "VideoCommon/RenderState.h"
|
||||
|
||||
namespace DX11
|
||||
|
@ -263,8 +264,8 @@ private:
|
|||
|
||||
struct Resources
|
||||
{
|
||||
std::array<ID3D11ShaderResourceView*, 8> textures;
|
||||
std::array<ID3D11SamplerState*, 8> samplers;
|
||||
std::array<ID3D11ShaderResourceView*, VideoCommon::MAX_PIXEL_SHADER_SAMPLERS> textures;
|
||||
std::array<ID3D11SamplerState*, VideoCommon::MAX_PIXEL_SHADER_SAMPLERS> samplers;
|
||||
std::array<ID3D11Buffer*, 2> pixelConstants;
|
||||
ID3D11Buffer* vertexConstants;
|
||||
ID3D11Buffer* geometryConstants;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue