From 4e113a08c7506f7f14bed17d7e447c3180de07e5 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 2 Oct 2015 11:53:11 +0200 Subject: [PATCH] Hack out handling of vulkan pipeline type in texture viewer --- renderdocui/Windows/TextureViewer.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/renderdocui/Windows/TextureViewer.cs b/renderdocui/Windows/TextureViewer.cs index ec5ce39aa..a8fa135d1 100644 --- a/renderdocui/Windows/TextureViewer.cs +++ b/renderdocui/Windows/TextureViewer.cs @@ -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}" +