Add custom shader handling to texture viewer

This commit is contained in:
baldurk
2017-02-14 19:14:52 +00:00
parent bc2ef77405
commit fbae19f622
6 changed files with 366 additions and 15 deletions
+11
View File
@@ -96,6 +96,17 @@ QString CommonPipelineState::OutputAbbrev()
return "RT";
}
QString CommonPipelineState::GetShaderExtension()
{
if(IsLogGL() || (!LogLoaded() && DefaultType == eGraphicsAPI_OpenGL) || IsLogVK() ||
(!LogLoaded() && DefaultType == eGraphicsAPI_Vulkan))
{
return "glsl";
}
return "hlsl";
}
Viewport CommonPipelineState::GetViewport(int index)
{
Viewport ret;
+3
View File
@@ -252,4 +252,7 @@ private:
qCritical() << "Error - invalid stage " << (int)stage;
return m_Vulkan->m_CS;
}
public:
QString GetShaderExtension();
};