Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Direct3D 10 Return Codes

The following table contains return codes from API functions.

D3D10_ERROR_FILE_NOT_FOUNDThe file was not found.
D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTSThere are too many unique instances of a particular type of state object.
D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may not be a valid pointer.
D3DERR_WASSTILLDRAWINGThe previous blit operation that is transferring information to or from this surface is incomplete.
E_FAILAttempted to create a device with the debug layer enabled and the layer is not installed.
E_INVALIDARGAn invalid parameter was passed to the returning function.
E_OUTOFMEMORYDirect3D could not allocate sufficient memory to complete the call.
E_NOTIMPLThe method call isn't implemented with the passed parameter combination.
S_FALSEAlternate success value, indicating a successful but nonstandard completion (the precise meaning depends on context).
S_OKNo error occurred.


To write code that handles HRESULT values robustly, use the SUCCEEDED(hr) and FAILED(hr) macros.

Related topics

Direct3D Reference
Reference for Direct3D 10



© 2016 Microsoft