// d3d12umddi.h
PFND3D12DDI_INITIALIZE_VIDEO_EXTENSION_COMMAND_0063 Pfnd3d12ddiInitializeVideoExtensionCommand0063;
HRESULT Pfnd3d12ddiInitializeVideoExtensionCommand0063(
D3D12DDI_HCOMMANDLIST hDrvCommandList,
D3D12DDI_HVIDEOEXTENSIONCOMMAND_0063 hDrvVideoExtensionCommand,
const void *pInitializationParameters,
SIZE_T InitializationParametersSizeInBytes
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Records a command to initialize or re-initialize a Video Extension Command into a command list.
hDrvCommandListHandle for the command list.
hDrvVideoExtensionCommandHandle to the video extension command to initialize.
pInitializationParametersPointer to the initialization parameters structure. Parameters for this structure must match the parameter enumeration for D3D12DDI_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_0063_INITIALIZATION.
InitializationParametersSizeInBytesThe size of the initialization parameters structure in bytes.
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. |
//Declaration
PFND3D12DDI_INITIALIZE_VIDEO_EXTENSION_COMMAND_0063 Pfnd3d12ddiInitializeVideoExtensionCommand0063;
// Definition
HRESULT Pfnd3d12ddiInitializeVideoExtensionCommand0063
(
D3D12DDI_HCOMMANDLIST hDrvCommandList
D3D12DDI_HVIDEOEXTENSIONCOMMAND_0063 hDrvVideoExtensionCommand
const void *pInitializationParameters
SIZE_T InitializationParametersSizeInBytes
)
{...}