[vlc-commits] d3d11_shaders: add more RGB/BGR formats rendering support
Steve Lhomme
git at videolan.org
Mon May 28 13:26:02 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 30 14:36:52 2018 +0100| [bdbeecf9de1e21128ea244807f7f7f2be92352f1] | committer: Steve Lhomme
d3d11_shaders: add more RGB/BGR formats rendering support
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bdbeecf9de1e21128ea244807f7f7f2be92352f1
---
modules/video_output/win32/d3d11_shaders.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/win32/d3d11_shaders.c b/modules/video_output/win32/d3d11_shaders.c
index 0d3eabd341..8299d0bc43 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -277,6 +277,8 @@ HRESULT D3D11_CompilePixelShader(vlc_object_t *o, d3d11_handle_t *hd3d, bool leg
case DXGI_FORMAT_R8G8B8A8_UNORM:
case DXGI_FORMAT_B8G8R8A8_UNORM:
case DXGI_FORMAT_B8G8R8X8_UNORM:
+ case DXGI_FORMAT_R10G10B10A2_UNORM:
+ case DXGI_FORMAT_B5G6R5_UNORM:
/* Y */
psz_sampler[0] =
"sample = shaderTexture[0].Sample(samplerState, coords);\n";
@@ -659,6 +661,7 @@ void D3D11_ClearRenderTargets(d3d11_device_t *d3d_dev, const d3d_format_t *cfg,
case DXGI_FORMAT_B8G8R8A8_UNORM:
case DXGI_FORMAT_B8G8R8X8_UNORM:
case DXGI_FORMAT_R10G10B10A2_UNORM:
+ case DXGI_FORMAT_B5G6R5_UNORM:
ID3D11DeviceContext_ClearRenderTargetView( d3d_dev->d3dcontext, targets[0], blackRGBA);
break;
case DXGI_FORMAT_YUY2:
@@ -667,9 +670,6 @@ void D3D11_ClearRenderTargets(d3d11_device_t *d3d_dev, const d3d_format_t *cfg,
case DXGI_FORMAT_AYUV:
ID3D11DeviceContext_ClearRenderTargetView( d3d_dev->d3dcontext, targets[0], blackVUYA);
break;
- case DXGI_FORMAT_B5G6R5_UNORM:
- ID3D11DeviceContext_ClearRenderTargetView( d3d_dev->d3dcontext, targets[0], blackRGBA);
- break;
default:
vlc_assert_unreachable();
}
More information about the vlc-commits
mailing list