ID3D11DeviceX::IsResourcePending Method

Checks whether the specified resource is pending.

Syntax

public:
BOOL IsResourcePending(
         ID3D11Resource *pResource
)  

Parameters

pResource
Type: ID3D11Resource *

[in] The resource to check, as a pointer to ID3D11Resource.

Return value

Type: BOOL 

TRUE if the read or write fence of the given resource is pending (that is, if the GPU has a pending write or read). Otherwise; FALSE.

Remarks

This method always performs a single poll on the fences and returns without ever blocking.

This method will always return FALSE for dynamic resources, because dynamic resources should never block.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DeviceX Interface

ID3D11DeviceX Members