Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This document lists the error codes used by Direct2D. The Direct2D Error Handling Policies topic has more info on handling errors like these.
Constant/value | Description |
---|---|
|
The number is invalid. |
|
You can't draw with a bitmap that is currently bound as the target bitmap. |
|
You can't draw with a bitmap that has the D2D1_BITMAP_OPTIONS_CANNOT_DRAW option. |
|
A cycle occurred in the graph. |
|
The display format to render is not supported by the hardware device. |
|
A valid display state could not be determined. |
|
The class ID of the specified effect is not registered by the operating system. |
|
The requested size is larger than the guaranteed supported texture size. |
|
The brush types are incompatible for the call. |
|
The supplied buffer is too small to accommodate the data. |
|
The Direct3D device doesn't have sufficient capabilities to perform the requested action. |
|
You can't render the graph with the context's current tiling settings. |
|
The application should close this instance of Direct2D and restart it as a new process. |
|
A call to this method is invalid. |
|
A configuration error occurred in the graph. |
|
An internal configuration error occurred in the graph. |
|
The specified property doesn't exist. |
|
You can't set the image as a target because it is either an effect or a bitmap that doesn't have the D2D1_BITMAP_OPTIONS_TARGET option. |
|
The application attempted to reuse a layer resource that has not yet been popped off the stack. |
|
The requested DX surface size exceeds the maximum texture size. |
|
There is no hardware rendering device available for this operation. |
|
The specified sub-property doesn't exist. |
|
The object has not yet been initialized. |
|
The operation failed because the original target isn't currently bound as a target. |
|
The operation can't complete while you have outstanding references to the target bitmap. |
|
The application attempted to pop a layer off the stack when a clip was at the top, or pop a clip off the stack when a layer was at the top. |
|
This error occurs during print control creation (ID2D1Device::CreatePrintControl) to indicate that the Direct2D print control (ID2D1PrintControl) can't support any of the package target types that represent printer formats. |
|
The application called ID2D1PrintControl::AddPage or ID2D1PrintControl::Close after the print job is already finished. |
|
The application did not pop all clips and layers off the stack, or it attempted to pop too many clips or layers off the stack. |
|
A presentation error has occurred that may be recoverable. The caller needs to re-create the render target then attempt to render the frame again. |
|
The requested operation cannot be performed until all layers and clips have been popped off the stack. |
|
The geometry scanner failed to process the data. |
|
Direct2D could not access the screen. |
|
Shader compilation failed. |
|
The render target is not compatible with GDI. |
|
A text client drawing effect object is of the wrong type. |
|
An application is holding a reference to the IDWriteTextRenderer interface after the corresponding DrawTextor DrawTextLayout call has returned. |
|
Shader construction failed because it was too complex. |
|
An effect attempted to use a transform with too many inputs. |
|
The requested operation is not supported. |
|
The pixel format is not supported. |
|
The requested Direct2D version is not supported. |
|
An unknown Win32 failure occurred. |
|
Objects used together were not all created from the same factory instance. |
|
The resource used was created by a render target in a different resource domain. |
|
The object was not in the correct state to process the method. |
|
The supplied vector is zero. |
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only] |
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
Header |
|