From c636076ed7287b77bc64ded0b266c84ee4de6a6f Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 10 Oct 2019 19:51:28 -0700 Subject: Imgui: fixed shaders to work with non-separable program in GL --- Imgui/src/ImGuiImplDiligent.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Imgui/src/ImGuiImplDiligent.cpp') diff --git a/Imgui/src/ImGuiImplDiligent.cpp b/Imgui/src/ImGuiImplDiligent.cpp index 1653823..65bf9c9 100644 --- a/Imgui/src/ImGuiImplDiligent.cpp +++ b/Imgui/src/ImGuiImplDiligent.cpp @@ -123,13 +123,11 @@ struct PSInput float2 uv : TEXCOORD; }; -PSInput main(VSInput VSIn) +void main(in VSInput VSIn, out PSInput PSIn) { - PSInput PSIn; PSIn.pos = mul(ProjectionMatrix, float4(VSIn.pos.xy, 0.0, 1.0)); PSIn.col = VSIn.col; PSIn.uv = VSIn.uv; - return PSIn; } )"; @@ -144,7 +142,7 @@ struct PSInput Texture2D Texture; SamplerState Texture_sampler; -float4 main(PSInput PSIn) : SV_Target +float4 main(in PSInput PSIn) : SV_Target { return PSIn.col * Texture.Sample(Texture_sampler, PSIn.uv); } -- cgit v1.2.3