ID3D12VideoDevice2::CreateVideoExtensionCommand method (d3d12video.h)

Creates a video extension command.

Syntax

HRESULT CreateVideoExtensionCommand(
  const D3D12_VIDEO_EXTENSION_COMMAND_DESC *pDesc,
  const void                               *pCreationParameters,
  SIZE_T                                   CreationParametersDataSizeInBytes,
  ID3D12ProtectedResourceSession           *pProtectedResourceSession,
  REFIID                                   riid,
  void                                     **ppVideoExtensionCommand
);

Parameters

pDesc

The D3D12_VIDEO_EXTENSION_COMMAND_DESC describing the command to be created.

pCreationParameters

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_CREATION.

CreationParametersDataSizeInBytes

The size of the pCreationParameters parameter structure, in bytes.

pProtectedResourceSession

A ID3D12ProtectedResourceSession for managing access to protected resources.

riid

The globally unique identifier (GUID) for the ID3D12VideoExtensionCommand interface.

ppVideoExtensionCommand

A pointer to a memory block that receives a pointer to the ID3D12VideoExtensionCommand 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