mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 06:36:08 +00:00
Add custom shader handling to texture viewer
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -252,4 +252,7 @@ private:
|
||||
qCritical() << "Error - invalid stage " << (int)stage;
|
||||
return m_Vulkan->m_CS;
|
||||
}
|
||||
|
||||
public:
|
||||
QString GetShaderExtension();
|
||||
};
|
||||
Reference in New Issue
Block a user