D3D10DDIARG_OPENRESOURCE structure (d3d10umddi.h)

The D3D10DDIARG_OPENRESOURCE structure contains information for opening a shared resource.

Syntax

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;

Members

[in] NumAllocations

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

[in] pOpenAllocationInfo

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.

pOpenAllocationInfo2

This member is reserved and should be set to zero.

This member is available beginning with Windows 7.

[in] hKMResource

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.

[in] pPrivateDriverData

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.

[in] PrivateDriverDataSize

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

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header d3d10umddi.h (include D3d10umddi.h)

See also

CreateResource(D3D10)

D3DDDI_OPENALLOCATIONINFO