Direct3D 12 Return Codes

The following table contains return codes from API functions.

HRESULT Description
E_ACCESSDENIED The following functions can return E_ACCESSDENIED: Xbox One only supports one Direct3D device at a time. You can check for E_ACCESSDENIED to see if the device has already been created by either the same process or another exclusive-mode process.
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.
S_FALSEAlternate success value, indicating a successful but nonstandard completion (the precise meaning depends on context).
S_OKNo error occurred.

See also

Direct3D 11 Return Codes

Error Codes for Xbox One APIs