Expand Minimize

D3D10DDIARG_OPENRESOURCE structure

The D3D10DDIARG_OPENRESOURCE structure contains information for opening a shared resource.

Syntax


typedef struct D3D10DDIARG_OPENRESOURCE {
  UINT                      NumAllocations;
#if D3D10DDI_MINOR_HEADER_VERSION >= 2 || D3D11DDI_MINOR_HEADER_VERSION >= 1
  union {
    D3DDDI_OPENALLOCATIONINFO  *pOpenAllocationInfo;
    D3DDDI_OPENALLOCATIONINFO2 *pOpenAllocationInfo2;
  };
#else 
  D3DDDI_OPENALLOCATIONINFO *pOpenAllocationInfo;
#endif 
  D3D10DDI_HKMRESOURCE      hKMResource;
  VOID                      *pPrivateDriverData;
  UINT                      PrivateDriverDataSize;
} D3D10DDIARG_OPENRESOURCE;

Members

NumAllocations

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

pOpenAllocationInfo

[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.

pOpenAllocationInfo

[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.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3d10umddi.h (include D3d10umddi.h)

See also

CreateResource(D3D10)
D3DDDI_OPENALLOCATIONINFO

 

 

Send comments about this topic to Microsoft

顯示:
© 2015 Microsoft