D3D12_VIDEO_ENCODER_HEAP_DESC structure (d3d12video.h)

Describes a ID3D12VideoEncoderHeap. Pass this structure into ID3D12VideoDevice3::CreateVideoEncoderHeap to create an instance of ID3D12VideoEncoderHeap.

Syntax

typedef struct D3D12_VIDEO_ENCODER_HEAP_DESC {
  UINT                                              NodeMask;
  D3D12_VIDEO_ENCODER_HEAP_FLAGS                    Flags;
  D3D12_VIDEO_ENCODER_CODEC                         EncodeCodec;
  D3D12_VIDEO_ENCODER_PROFILE_DESC                  EncodeProfile;
  D3D12_VIDEO_ENCODER_LEVEL_SETTING                 EncodeLevel;
  UINT                                              ResolutionsListCount;
  const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC *pResolutionList;
} D3D12_VIDEO_ENCODER_HEAP_DESC;

Members

NodeMask

The node mask specifying the physical adapter on which the video processor will be used. For single GPU operation, set this to zero. If there are multiple GPU nodes, set a bit to identify the node, i.e. the device's physical adapter, to which the command queue applies. Each bit in the mask corresponds to a single node. Only 1 bit may be set.

Flags

A bitwise or combination of values from the D3D12_VIDEO_ENCODER_HEAP_FLAGS enumeration specifying encoder heap creation options.

EncodeCodec

A D3D12_VIDEO_ENCODER_CODEC specifying the codec of the associated encoder object.

EncodeProfile

A D3D12_VIDEO_ENCODER_PROFILE_DESC specifying the profile for the selected codec in the associated encoder object.

EncodeLevel

A D3D12_VIDEO_ENCODER_LEVEL_SETTING specifying the level for the selected codec in the associated encoder object.

ResolutionsListCount

The count of resolutions requested to be supported present in the pResolutionList field.

pResolutionList

Pointer to an array of D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC specifying the list of resolutions requested to be supported.

Remarks

If support for resolution dynamic reconfiguration is not supported, specify only one resolution in pResolutionList, denoting the desired target resolution.

Requirements

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

See also

ID3D12VideoDecoderHeap

ID3D12VideoDevice3::CreateVideoEncoderHeap