[vlc-commits] d3d11:shaders: use float3 for the coordinates

Steve Lhomme git at videolan.org
Mon May 28 13:25:34 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan  9 08:51:07 2018 +0100| [2deb05b58de17356cba4e8d6bcbc1aa6f7e7c557] | committer: Steve Lhomme

d3d11:shaders: use float3 for the coordinates

Otherwise render to a 2D texture doesn't work. We never need more anyway.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2deb05b58de17356cba4e8d6bcbc1aa6f7e7c557
---

 modules/video_output/win32/d3d11_shaders.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/win32/d3d11_shaders.c b/modules/video_output/win32/d3d11_shaders.c
index 594b90442b..8cb113e7ba 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -70,7 +70,7 @@ static const char* globPixelShaderDefault = "\
   struct PS_INPUT\n\
   {\n\
     float4 Position   : SV_POSITION;\n\
-    float4 Texture    : TEXCOORD0;\n\
+    float3 Texture    : TEXCOORD0;\n\
   };\n\
   \n\
   /* see http://filmicworlds.com/blog/filmic-tonemapping-operators/ */\n\
@@ -108,7 +108,7 @@ static const char* globPixelShaderDefault = "\
       %s;\n\
   }\n\
   \n\
-  inline float4 sampleTexture(SamplerState samplerState, float4 coords) {\n\
+  inline float4 sampleTexture(SamplerState samplerState, float3 coords) {\n\
       float4 sample;\n\
       %s /* sampling routine in sample */\n\
       return sample;\n\



More information about the vlc-commits mailing list