diff --git a/plugins/GSdx/Renderers/DX11/GSDevice11.cpp b/plugins/GSdx/Renderers/DX11/GSDevice11.cpp index 0ad24c5734..191ff29e5c 100644 --- a/plugins/GSdx/Renderers/DX11/GSDevice11.cpp +++ b/plugins/GSdx/Renderers/DX11/GSDevice11.cpp @@ -198,6 +198,7 @@ bool GSDevice11::Create(const std::shared_ptr &wnd) { {"POSITION", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0}, {"TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 16, D3D11_INPUT_PER_VERTEX_DATA, 0}, + {"COLOR", 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0, 28, D3D11_INPUT_PER_VERTEX_DATA, 0}, }; std::vector shader; diff --git a/plugins/GSdx/res/convert.fx b/plugins/GSdx/res/convert.fx index 09e04f2e97..47b954adea 100644 --- a/plugins/GSdx/res/convert.fx +++ b/plugins/GSdx/res/convert.fx @@ -8,12 +8,14 @@ struct VS_INPUT { float4 p : POSITION; float2 t : TEXCOORD0; + float4 c : COLOR; }; struct VS_OUTPUT { float4 p : SV_Position; float2 t : TEXCOORD0; + float4 c : COLOR; }; Texture2D Texture; @@ -28,6 +30,7 @@ struct PS_INPUT { float4 p : SV_Position; float2 t : TEXCOORD0; + float4 c : COLOR; }; struct PS_OUTPUT @@ -41,6 +44,7 @@ VS_OUTPUT vs_main(VS_INPUT input) output.p = input.p; output.t = input.t; + output.c = input.c; return output; }