D3D/Render: Use std::array where applicable

This commit is contained in:
Lioncash
2017-04-09 16:15:57 -04:00
parent 0c3958bbe5
commit 278e406f0b
2 changed files with 53 additions and 56 deletions

View File

@ -4,6 +4,7 @@
#pragma once
#include <cstddef>
#include <stack>
#include <unordered_map>
@ -105,7 +106,7 @@ public:
void PopDepthState();
void PopRasterizerState();
void SetTexture(u32 index, ID3D11ShaderResourceView* texture)
void SetTexture(size_t index, ID3D11ShaderResourceView* texture)
{
if (m_current.textures[index] != texture)
m_dirtyFlags |= DirtyFlag_Texture0 << index;
@ -113,7 +114,7 @@ public:
m_pending.textures[index] = texture;
}
void SetSampler(u32 index, ID3D11SamplerState* sampler)
void SetSampler(size_t index, ID3D11SamplerState* sampler)
{
if (m_current.samplers[index] != sampler)
m_dirtyFlags |= DirtyFlag_Sampler0 << index;