ID3D12VideoProcessCommandList2::InitializeExtensionCommand method (d3d12video.h)

Records a command to initializes or re-initializes a video extension command into a video processor command list.

Syntax

void InitializeExtensionCommand(
  ID3D12VideoExtensionCommand *pExtensionCommand,
  const void                  *pInitializationParameters,
  SIZE_T                      InitializationParametersSizeInBytes
);

Parameters

pExtensionCommand

Pointer to an ID3D12VideoExtensionCommand representing the video extension command to initialize. The caller is responsible for maintaining object lifetime until command execution is complete.

pInitializationParameters

A pointer to the creation parameters structure, which is defined by the command. The parameters structure must match the parameters enumerated by a call to ID3D12VideoDevice::CheckFeatureSupport with the feature value of D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_PARAMETERS and a parameter stage value of D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_INITIALIZATION.

InitializationParametersSizeInBytes

The size of the pInitializationParameters parameter structure, in bytes.

Return value

None

Remarks

Errors initializing the extension command are reported via debug layers and the return value of the command list's Close method.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004 (10.0; Build 19041)
Minimum supported server Windows Server, version 2004 (10.0; Build 19041)
Header d3d12video.h