ID3D12VideoDevice2::CreateVideoDecoderHeap1 method (d3d12video.h)

Allocates a video decoder heap that contains the resolution-dependent driver resources and state, with support for protected resources.

Syntax

HRESULT CreateVideoDecoderHeap1(
  const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc,
  ID3D12ProtectedResourceSession      *pProtectedResourceSession,
  REFIID                              riid,
  void                                **ppVideoDecoderHeap
);

Parameters

pVideoDecoderHeapDesc

A pointer to a D3D12_VIDEO_DECODER_HEAP_DESC describing the decoding configuration.

pProtectedResourceSession

A ID3D12ProtectedResourceSession for managing access to protected resources.

riid

The globally unique identifier (GUID) for the decode video state interface.

ppVideoDecoderHeap

A pointer to a memory block that receives a pointer to the ID3D12VideoDecoderHeap1 interface.

Return value

This method returns an HRESULT.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header d3d12video.h