Hack out handling of vulkan pipeline type in texture viewer

This commit is contained in:
baldurk
2015-10-02 11:53:11 +02:00
parent edac1f0bfd
commit 4e113a08c7
+10 -1
View File
@@ -105,6 +105,10 @@ namespace renderdocui.Windows
if (copy || compute)
return -1;
// VKTODOLOW temp - need to tidy this up properly
if (core.APIProps.pipelineType == APIPipelineStateType.Vulkan)
return -1;
if (core.APIProps.pipelineType == APIPipelineStateType.D3D11)
{
D3D11PipelineState.ShaderStage.ResourceView view = null;
@@ -160,6 +164,10 @@ namespace renderdocui.Windows
if (copy || compute)
return -1;
// VKTODOLOW temp - need to tidy this up properly
if (core.APIProps.pipelineType == APIPipelineStateType.Vulkan)
return -1;
if (core.APIProps.pipelineType == APIPipelineStateType.D3D11)
{
D3D11PipelineState.ShaderStage.ResourceView view = null;
@@ -834,7 +842,8 @@ namespace renderdocui.Windows
"}}{0}"
, Environment.NewLine);
}
else if (m_Core.APIProps.pipelineType == APIPipelineStateType.OpenGL)
else if (m_Core.APIProps.pipelineType == APIPipelineStateType.OpenGL ||
m_Core.APIProps.pipelineType == APIPipelineStateType.Vulkan)
{
src = String.Format(
"#version 420 core{0}" +