Skip to content

Latest commit

 

History

History
87 lines (60 loc) · 3.31 KB

nc-d3dumddi-pfnd3dddi_openresource.md

File metadata and controls

87 lines (60 loc) · 3.31 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NC:d3dumddi.PFND3DDDI_OPENRESOURCE
PFND3DDDI_OPENRESOURCE (d3dumddi.h)
The OpenResource function informs the driver that a shared resource is opened.
display\openresource.htm
display
05/10/2018
PFND3DDDI_OPENRESOURCE callback function
OpenResource, OpenResource callback function [Display Devices], PFND3DDDI_OPENRESOURCE, PFND3DDDI_OPENRESOURCE callback, UserModeDisplayDriver_Functions_57f3d196-70e6-475e-86ca-bb6d20aca568.xml, d3dumddi/OpenResource, display.openresource
d3dumddi.h
D3dumddi.h
Desktop
Available in Windows Vista and later versions of the Windows operating systems.
Windows
PFND3DDDI_OPENRESOURCE
d3dumddi/PFND3DDDI_OPENRESOURCE
APIRef
kbSyntax
UserDefined
d3dumddi.h
PFND3DDDI_OPENRESOURCE

PFND3DDDI_OPENRESOURCE callback function

-description

The OpenResource function informs the driver that a shared resource is opened.

-parameters

-param hDevice

A handle to the display device (graphics context) that is used to open the resource.

-param unnamedParam2

pResource [in, out]

A pointer to a D3DDDIARG_OPENRESOURCE structure that describes the resource that is opened.

-returns

OpenResource returns S_OK or an appropriate error result if the resource is not successfully opened.

-remarks

The Microsoft Direct3D runtime calls the user-mode display driver's OpenResource function to inform the user-mode display driver that a shared resource is opened. The driver should store any information that is required to describe the resource and return a unique handle in the hResource member of the D3DDDIARG_OPENRESOURCE structure (pointed to by the pResource parameter) that identifies the new resource in subsequent calls that the Direct3D runtime makes to the driver. The private driver data that is passed to OpenResource is the same private driver data that was passed to the display miniport driver's DxgkDdiCreateAllocation function when the resource was created.

For more information about creating and destroying resources, see Handling Resource Creation and Destruction.

-see-also

D3DDDIARG_OPENRESOURCE

D3DDDI_DEVICEFUNCS

D3DDDI_OPENALLOCATIONINFO

DxgkDdiCreateAllocation