[vlc-commits] d3d11:shaders: use float3 for the coordinates
Steve Lhomme
git at videolan.org
Wed Oct 17 16:07:35 CEST 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 9 08:51:07 2018 +0100| [2e55283d929b69432c3189f24d6f11a90777e816] | committer: Steve Lhomme
d3d11:shaders: use float3 for the coordinates
Otherwise render to a 2D texture doesn't work. We never need more anyway.
(cherry picked from commit 2deb05b58de17356cba4e8d6bcbc1aa6f7e7c557)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=2e55283d929b69432c3189f24d6f11a90777e816
---
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