【问题标题】:How to Create ID3D12VideoDevice correctly?如何正确创建 ID3D12VideoDevice?
【发布时间】:2022-08-14 06:26:02
【问题描述】:

Microsoft Docs 没有给出示例,只需要代码,谢谢。 ?????????

    标签: c++ microsoft-graph-api directx-12


    【解决方案1】:

    您从您的ID3D12Device 获得ID3D12VideoDevice 设备。

    HRESULT hr = pD3D12Device->QueryInterface(IID_PPV_ARGS((void**)&pD3D12VideoDevice));
    if (FAILED(hr))
    {
        // Driver or Windows doesn't support DirectX 12 Video.
    }
    

    有关创建为ID3D12Device 的详细信息,请参阅this blog post。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-16
      相关资源
      最近更新 更多