d3d11: d3d11device: Add gst_d3d11_device_new_{for_adapter_luid,wrapped}
authorSeungha Yang <seungha@centricular.com>
Fri, 8 Oct 2021 10:41:22 +0000 (19:41 +0900)
committerSeungha Yang <seungha@centricular.com>
Sat, 9 Oct 2021 18:23:53 +0000 (03:23 +0900)
commit5ac7a21ef05f69ea173c7450626c1ff64bfa24ed
tree8584f74e2ecb8e862e3c17b8de3d324ad2343282
parentd8eff2623d480c649e0412c950fbe4b52b1b7e0e
d3d11: d3d11device: Add gst_d3d11_device_new_{for_adapter_luid,wrapped}

* gst_d3d11_device_new_for_adapter_luid()
  Used for creating D3D11 device for a DXGI adapter (i.e., GPU)
  corresponding to a LUID (Locally Unique Identifier).
  This method can be useful for interop with other APIs such as
  Direct3D12, MediaFoundation, CUDA, etc.
* gst_d3d11_device_new_wrapped()
  Allows creating a new GstD3D11Device object by using already
  configured ID3D11Device. This is conceptually equivalent to
  gst_gl_context_new_wrapped()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1098>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.h
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11utils.cpp
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11utils.h
subprojects/gst-plugins-bad/tests/check/libs/d3d11device.cpp [new file with mode: 0644]
subprojects/gst-plugins-bad/tests/check/meson.build