diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-10-11 02:51:28 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-10-11 02:51:28 +0000 |
| commit | c636076ed7287b77bc64ded0b266c84ee4de6a6f (patch) | |
| tree | 9130f127e44f64451a49faa2913a7b1542b6a6c5 /Imgui/src/ImGuiImplDiligent.cpp | |
| parent | Added Imgui Android implementation (diff) | |
| download | DiligentTools-c636076ed7287b77bc64ded0b266c84ee4de6a6f.tar.gz DiligentTools-c636076ed7287b77bc64ded0b266c84ee4de6a6f.zip | |
Imgui: fixed shaders to work with non-separable program in GL
Diffstat (limited to 'Imgui/src/ImGuiImplDiligent.cpp')
| -rw-r--r-- | Imgui/src/ImGuiImplDiligent.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |
