vlc | branch: master | Steve Lhomme <[email protected]> | Wed Feb 17 14:02:26 2021 +0100| [ac3e7bdae7f4e691e87a548a42ae4b67aa99b49f] | committer: Steve Lhomme
d3d_dynamic_shader: pass use boundary display boundaries as a single variable > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ac3e7bdae7f4e691e87a548a42ae4b67aa99b49f --- modules/video_output/win32/d3d_dynamic_shader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/video_output/win32/d3d_dynamic_shader.c b/modules/video_output/win32/d3d_dynamic_shader.c index 3cebeafc8a..4b12e5f0bf 100644 --- a/modules/video_output/win32/d3d_dynamic_shader.c +++ b/modules/video_output/win32/d3d_dynamic_shader.c @@ -43,8 +43,7 @@ cbuffer PS_CONSTANT_BUFFER : register(b0)\n\ float4x4 Primaries;\n\ float Opacity;\n\ float LuminanceScale;\n\ - float BoundaryX;\n\ - float BoundaryY;\n\ + float2 Boundary;\n\ };\n\ Texture2D shaderTexture[4];\n\ SamplerState normalSampler : register(s0);\n\ @@ -263,7 +262,7 @@ float4 main( PS_INPUT In ) : SV_TARGET\n\ {\n\ float4 sample;\n\ \n\ - if (In.uv.x > BoundaryX || In.uv.y > BoundaryY) \n\ + if (In.uv.x > Boundary.x || In.uv.y > Boundary.y) \n\ sample = sampleTexture( borderSampler, In.uv );\n\ else\n\ sample = sampleTexture( normalSampler, In.uv );\n\ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
