d3d11memory: Clear YUV texture with black color
authorSeungha Yang <seungha@centricular.com>
Thu, 26 May 2022 14:46:05 +0000 (23:46 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 27 May 2022 14:03:49 +0000 (14:03 +0000)
commit0deb73d9ba954e7a4a5e45ebffe412861b0863a7
treeca5cdbfc48ef5b4a7e81ea2f0590faf804780bb1
parent3c5d3ae7eac2389a9b7c0489b52f56dbd1d1d48a
d3d11memory: Clear YUV texture with black color

We prefer black color as an initial texture color and
Direct3D11 runtime will initialize texture with zeros (except for alpha)
which is fine for RGB formats. But UV components of YUV texture
requires manual clear for black color.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2502>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp