S_PRESENT
A list of some of the possible return codes for methods and functions.
#define | Description |
---|---|
S_OK | The device is running normally and can be used for rendering. |
S_PRESENT_OCCLUDED | The presentation area is occluded. Occlusion means that the presentation window is minimized or another device entered the fullscreen mode on the same monitor as the presentation window and the presentation window is completely on that monitor. Occlusion will not occur if the client area is covered by another Window. Occluded applications can continue rendering and all calls will succeed, but the occluded presentation window will not be updated. Preferably the application should stop rendering to the presentation window using the device and keep calling CheckDeviceState until S_OK or S_PRESENT_MODE_CHANGED returns. |
S_PRESENT_MODE_CHANGED | The desktop display mode has been changed. The application can continue rendering, but there might be color conversion/stretching. Pick a back buffer format similar to the current display mode, and call Reset to recreate the swap chains. The device will leave this state after a Reset is called. |
Other error codes are contained in D3DERR.
Related topics