summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/ShaderCache.cpp
diff options
context:
space:
mode:
authorTellowKrinkle <tellowkrinkle@gmail.com>2022-06-13 03:59:32 -0500
committerTellowKrinkle <tellowkrinkle@gmail.com>2022-06-16 02:08:45 -0500
commitc7892d7371b465472f1d8d7d2e50452b77c534a4 (patch)
tree7edb1539720dc15a511f383b607f534c3bb4c33d /Source/Core/VideoCommon/ShaderCache.cpp
parent23c1721fbd317a31046affcf362848bc191f4711 (diff)
VideoCommon: Name ubershaders
Diffstat (limited to 'Source/Core/VideoCommon/ShaderCache.cpp')
-rw-r--r--Source/Core/VideoCommon/ShaderCache.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/ShaderCache.cpp b/Source/Core/VideoCommon/ShaderCache.cpp
index 38ac252832..3c9e4e6ae8 100644
--- a/Source/Core/VideoCommon/ShaderCache.cpp
+++ b/Source/Core/VideoCommon/ShaderCache.cpp
@@ -430,7 +430,8 @@ ShaderCache::CompileVertexUberShader(const UberShader::VertexShaderUid& uid) con
{
const ShaderCode source_code =
UberShader::GenVertexShader(m_api_type, m_host_config, uid.GetUidData());
- return g_renderer->CreateShaderFromSource(ShaderStage::Vertex, source_code.GetBuffer());
+ return g_renderer->CreateShaderFromSource(ShaderStage::Vertex, source_code.GetBuffer(),
+ fmt::to_string(*uid.GetUidData()));
}
std::unique_ptr<AbstractShader> ShaderCache::CompilePixelShader(const PixelShaderUid& uid) const
@@ -445,7 +446,8 @@ ShaderCache::CompilePixelUberShader(const UberShader::PixelShaderUid& uid) const
{
const ShaderCode source_code =
UberShader::GenPixelShader(m_api_type, m_host_config, uid.GetUidData());
- return g_renderer->CreateShaderFromSource(ShaderStage::Pixel, source_code.GetBuffer());
+ return g_renderer->CreateShaderFromSource(ShaderStage::Pixel, source_code.GetBuffer(),
+ fmt::to_string(*uid.GetUidData()));
}
const AbstractShader* ShaderCache::InsertVertexShader(const VertexShaderUid& uid,