PFND3D12DDI_DEALLOCATE_CB_0022 callback function (d3d12umddi.h)
The D3D12 runtime's pfnDeallocateCb callback function controls resource deallocation.
Syntax
PFND3D12DDI_DEALLOCATE_CB_0022 Pfnd3d12ddiDeallocateCb0022;
HRESULT Pfnd3d12ddiDeallocateCb0022(
D3D12DDI_HRTDEVICE unnamedParam1,
const D3D12DDICB_DEALLOCATE_0022 *unnamedParam2
)
{...}
Parameters
unnamedParam1
[in] The handle to the runtime's device.
unnamedParam2
[in] Pointer to a D3D12DDICB_DEALLOCATE_0022 structure that contains information for a deallocation.
Return value
If this callback function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This callback function is used by the driver to request the Direct3D runtime to allocate resources.
Access this callback function by using the D3D12DDI_CORELAYER_DEVICECALLBACKS_0022 structure.
The driver must check the return value of the function.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d12umddi.h (include D3d12umddi.h) |