Add custom shader handling to texture viewer

This commit is contained in:
baldurk
2017-02-14 14:12:41 +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;