D3D10DDIARG_OPENRESOURCE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3d10umddi.h

typedef struct D3D10DDIARG_OPENRESOURCE {
  [in] UINT                      NumAllocations;
  union {
    [in] D3DDDI_OPENALLOCATIONINFO  *pOpenAllocationInfo;
         D3DDDI_OPENALLOCATIONINFO2 *pOpenAllocationInfo2;
  };
  [in] D3DDDI_OPENALLOCATIONINFO *pOpenAllocationInfo;
  [in] D3D10DDI_HKMRESOURCE      hKMResource;
  [in] VOID                      *pPrivateDriverData;
  [in] UINT                      PrivateDriverDataSize;
} D3D10DDIARG_OPENRESOURCE;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-d3d10umddi-d3d10ddiarg_openresource)

D3D10DDIARG_OPENRESOURCE structure

Description

The D3D10DDIARG_OPENRESOURCE structure contains information for opening a shared resource.

Members

NumAllocations [in]

The number of elements in the array that the pOpenAllocationInfo member specifies. NumAllocations represents the number of allocations to open.

pOpenAllocationInfo2

This member is reserved and should be set to zero.

This member is available beginning with Windows 7.

pOpenAllocationInfo [in]

An array of D3DDDI_OPENALLOCATIONINFO structures that describe the allocations in the resource to open.

[in] An array of D3DDDI_OPENALLOCATIONINFO structures that describe the allocations in the resource to open.

hKMResource [in]

A D3D10DDI_HKMRESOURCE data type that represents a kernel-mode handle to the resource that is associated with the allocations.

This kernel-mode handle represents an existing shared resource that was previously created through a call to the user-mode display driver's CreateResource(D3D10) function.

The user-mode display driver can insert the kernel-mode resource handle in the command stream for subsequent use by the display miniport driver.

pPrivateDriverData [in]

A pointer to private data that was passed to the display miniport driver when the resource was created. This data is per resource and not per allocation like the private data in each allocation's D3DDDI_OPENALLOCATIONINFO structure.

PrivateDriverDataSize [in]

The size, in bytes, of the private data that pPrivateDriverData points to.

See also

CreateResource(D3D10)

D3DDDI_OPENALLOCATIONINFO