diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-07-21 19:04:57 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-07-29 19:20:16 -0400 |
| commit | 14e0b48ae43c3625f8571dec88121c91d575c65c (patch) | |
| tree | 31bc05ce2f346cbdfd9572a5f82c57223bd98022 /Source/Core/VideoBackends/Null/ShaderCache.cpp | |
| parent | 66b11c5198adece05e8e53dca7bf1ad4489f1bdb (diff) | |
VideoCommon: Make API_TYPE an enum class
Allows for forward declarations in most places, which prevents dumping
unrelated VideoCommon.h contents directly into headers.
Diffstat (limited to 'Source/Core/VideoBackends/Null/ShaderCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Null/ShaderCache.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Null/ShaderCache.cpp b/Source/Core/VideoBackends/Null/ShaderCache.cpp index a08ef6952b..629e440763 100644 --- a/Source/Core/VideoBackends/Null/ShaderCache.cpp +++ b/Source/Core/VideoBackends/Null/ShaderCache.cpp @@ -6,6 +6,7 @@ #include "VideoCommon/Debugger.h" #include "VideoCommon/Statistics.h" +#include "VideoCommon/VideoCommon.h" namespace Null { @@ -34,7 +35,7 @@ void ShaderCache<Uid>::Clear() template <typename Uid> bool ShaderCache<Uid>::SetShader(DSTALPHA_MODE dst_alpha_mode, u32 primitive_type) { - Uid uid = GetUid(dst_alpha_mode, primitive_type, API_OPENGL); + Uid uid = GetUid(dst_alpha_mode, primitive_type, APIType::OpenGL); // Check if the shader is already set if (m_last_entry) @@ -59,7 +60,7 @@ bool ShaderCache<Uid>::SetShader(DSTALPHA_MODE dst_alpha_mode, u32 primitive_typ } // Need to compile a new shader - ShaderCode code = GenerateCode(dst_alpha_mode, API_OPENGL, uid); + ShaderCode code = GenerateCode(dst_alpha_mode, APIType::OpenGL, uid); m_shaders.emplace(uid, code.GetBuffer()); GFX_DEBUGGER_PAUSE_AT(NEXT_PIXEL_SHADER_CHANGE, true); |
