mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +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;
|
||||
|
||||
Reference in New Issue
Block a user