Blt
Espandi Riduci a icona

OfferResources routine

Called by the Microsoft Direct3D runtime to request that the user-mode display driver offer video memory resources for reuse.

Syntax


PFND3DDDI_OFFERRESOURCES OfferResources;

_Check_return_ HRESULT APIENTRY* OfferResources(
  _In_  HANDLE hDevice,
  _In_  const D3DDDIARG_OFFERRESOURCES *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_OFFERRESOURCES structure that defines the video memory resources that the driver offers.

Return value

Returns one of the following values.

Return codeDescription
S_OK

The video memory resources were successfully offered.

D3DDDIERR_DEVICEREMOVED

The driver detected that the display adapter was removed, so the driver did not complete the operation.

If the driver is not aware of the adapter removal, the driver is not required to return this error code.

 

Remarks

If the user-mode driver does not have outstanding work queued that references an allocation that it has been asked to offer, then it can offer the allocation immediately or postpone the offer until the next call is made to the Flush or Present functions. However, the driver must always process all batched offer calls that have been submitted through Flush or Present.

If the driver uses the renaming service of the video memory manager, then the driver should offer the last allocation instance.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_OFFERRESOURCES
D3DDDI_DEVICEFUNCS
Flush
Present
ReclaimResources

 

 

Send comments about this topic to Microsoft

Mostra:
© 2014 Microsoft