[vlc-commits] d3d11_shaders: fix AYUV pixel shader
Steve Lhomme
git at videolan.org
Mon Oct 14 15:09:42 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Oct 14 13:56:54 2019 +0200| [35678ea5d918c1cfb4e6e6d70486b910f1d11be4] | committer: Steve Lhomme
d3d11_shaders: fix AYUV pixel shader
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35678ea5d918c1cfb4e6e6d70486b910f1d11be4
---
modules/video_output/win32/d3d11_shaders.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/video_output/win32/d3d11_shaders.c b/modules/video_output/win32/d3d11_shaders.c
index 14bd536aec..eadf5a9234 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -377,10 +377,10 @@ HRESULT D3D11_CompilePixelShader(vlc_object_t *o, d3d11_handle_t *hd3d, bool leg
break;
case DXGI_FORMAT_AYUV:
psz_sampler[0] =
- "sample.x = shaderTexture[0].Sample(SampleType, coords).z;\n"
- "sample.y = shaderTexture[0].Sample(SampleType, coords).y;\n"
- "sample.z = shaderTexture[0].Sample(SampleType, coords).x;\n"
- "sample.a = shaderTexture[0].Sample(SampleType, coords).a;";
+ "sample.x = shaderTexture[0].Sample(samplerState, coords).z;\n"
+ "sample.y = shaderTexture[0].Sample(samplerState, coords).y;\n"
+ "sample.z = shaderTexture[0].Sample(samplerState, coords).x;\n"
+ "sample.a = shaderTexture[0].Sample(samplerState, coords).a;";
break;
case DXGI_FORMAT_R8G8B8A8_UNORM:
case DXGI_FORMAT_B8G8R8A8_UNORM:
More information about the vlc-commits
mailing list