PFND3D12DDI_INITIALIZE_VIDEO_EXTENSION_COMMAND_0063 callback function (d3d12umddi.h)
Records a command to initialize or re-initialize a Video Extension Command into a command list.
Syntax
PFND3D12DDI_INITIALIZE_VIDEO_EXTENSION_COMMAND_0063 Pfnd3d12ddiInitializeVideoExtensionCommand0063;
HRESULT Pfnd3d12ddiInitializeVideoExtensionCommand0063(
D3D12DDI_HCOMMANDLIST hDrvCommandList,
D3D12DDI_HVIDEOEXTENSIONCOMMAND_0063 hDrvVideoExtensionCommand,
const void *pInitializationParameters,
SIZE_T InitializationParametersSizeInBytes
)
{...}
Parameters
hDrvCommandList
Handle for the command list.
hDrvVideoExtensionCommand
Handle to the video extension command to initialize.
pInitializationParameters
Pointer to the initialization parameters structure. Parameters for this structure must match the parameter enumeration for D3D12DDI_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_0063_INITIALIZATION.
InitializationParametersSizeInBytes
The size of the initialization parameters structure in bytes.
Return value
The following error codes are allowed:
Return value | Description |
---|---|
S_OK | Initialization succeeded. |
D3DDDIERR_APPLICATIONERROR | The caller has attempted to initialize the command incorrectly. For example, provided an invalid argument. This error puts the command list in error and an error code is returned from the Close method on the API command list. |
D3DDDIERR_DEVICEREMOVED | Cannot initialize the command because the device is in a device removed state. If the runtime has not already realized that the device was removed, this will set the device and command list in error. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1903 |
Header | d3d12umddi.h |