Checks whether the specified resource is pending.
public:
BOOL IsResourcePending(
ID3D11Resource *pResource
)
pResource
Type: ID3D11Resource *
[in] The resource to check, as a pointer to ID3D11Resource.
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.
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.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.