1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// WARNING: this file is auto-generated by xtask gen and may be overwritten
use *;
/// The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect.
/// Enable the D3D debug layer in order to see details via debug messages.
pub const ERROR_INVALID_CALL : HResultError = from_constant; // DXGI_ERROR_INVALID_CALL
/// The object was not found. If calling IDXGIFactory::EnumAdaptes, there is no adapter with the specified ordinal.
pub const ERROR_NOT_FOUND : HResultError = from_constant; // DXGI_ERROR_NOT_FOUND
/// The caller did not supply a sufficiently large buffer.
pub const ERROR_MORE_DATA : HResultError = from_constant; // DXGI_ERROR_MORE_DATA
/// The specified device interface or feature level is not supported on this system.
pub const ERROR_UNSUPPORTED : HResultError = from_constant; // DXGI_ERROR_UNSUPPORTED
/// The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.
pub const ERROR_DEVICE_REMOVED : HResultError = from_constant; // DXGI_ERROR_DEVICE_REMOVED
/// The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application.
pub const ERROR_DEVICE_HUNG : HResultError = from_constant; // DXGI_ERROR_DEVICE_HUNG
/// The GPU will not respond to more commands, most likely because some other application submitted invalid commands.
/// The calling application should re-create the device and continue.
pub const ERROR_DEVICE_RESET : HResultError = from_constant; // DXGI_ERROR_DEVICE_RESET
/// The GPU was busy at the moment when the call was made, and the call was neither executed nor scheduled.
pub const ERROR_WAS_STILL_DRAWING : HResultError = from_constant; // DXGI_ERROR_WAS_STILL_DRAWING
/// An event (such as power cycle) interrupted the gathering of presentation statistics. Any previous statistics should be
/// considered invalid.
pub const ERROR_FRAME_STATISTICS_DISJOINT : HResultError = from_constant; // DXGI_ERROR_FRAME_STATISTICS_DISJOINT
/// Fullscreen mode could not be achieved because the specified output was already in use.
pub const ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE : HResultError = from_constant; // DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE
/// An internal issue prevented the driver from carrying out the specified operation. The driver's state is probably suspect,
/// and the application should not continue.
pub const ERROR_DRIVER_INTERNAL_ERROR : HResultError = from_constant; // DXGI_ERROR_DRIVER_INTERNAL_ERROR
/// A global counter resource was in use, and the specified counter cannot be used by this Direct3D device at this time.
pub const ERROR_NONEXCLUSIVE : HResultError = from_constant; // DXGI_ERROR_NONEXCLUSIVE
/// A resource is not available at the time of the call, but may become available later.
pub const ERROR_NOT_CURRENTLY_AVAILABLE : HResultError = from_constant; // DXGI_ERROR_NOT_CURRENTLY_AVAILABLE
/// The application's remote device has been removed due to session disconnect or network disconnect.
/// The application should call IDXGIFactory1::IsCurrent to find out when the remote device becomes available again.
pub const ERROR_REMOTE_CLIENT_DISCONNECTED : HResultError = from_constant; // DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED
/// The device has been removed during a remote session because the remote computer ran out of memory.
pub const ERROR_REMOTE_OUTOFMEMORY : HResultError = from_constant; // DXGI_ERROR_REMOTE_OUTOFMEMORY
/// The keyed mutex was abandoned.
pub const ERROR_ACCESS_LOST : HResultError = from_constant; // DXGI_ERROR_ACCESS_LOST
/// The timeout value has elapsed and the resource is not yet available.
pub const ERROR_WAIT_TIMEOUT : HResultError = from_constant; // DXGI_ERROR_WAIT_TIMEOUT
/// The output duplication has been turned off because the Windows session ended or was disconnected.
/// This happens when a remote user disconnects, or when "switch user" is used locally.
pub const ERROR_SESSION_DISCONNECTED : HResultError = from_constant; // DXGI_ERROR_SESSION_DISCONNECTED
/// The DXGI output (monitor) to which the swapchain content was restricted, has been disconnected or changed.
pub const ERROR_RESTRICT_TO_OUTPUT_STALE : HResultError = from_constant; // DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE
/// DXGI is unable to provide content protection on the swapchain. This is typically caused by an older driver,
/// or by the application using a swapchain that is incompatible with content protection.
pub const ERROR_CANNOT_PROTECT_CONTENT : HResultError = from_constant; // DXGI_ERROR_CANNOT_PROTECT_CONTENT
/// The application is trying to use a resource to which it does not have the required access privileges.
/// This is most commonly caused by writing to a shared resource with read-only access.
pub const ERROR_ACCESS_DENIED : HResultError = from_constant; // DXGI_ERROR_ACCESS_DENIED
/// The application is trying to create a shared handle using a name that is already associated with some other resource.
pub const ERROR_NAME_ALREADY_EXISTS : HResultError = from_constant; // DXGI_ERROR_NAME_ALREADY_EXISTS
/// The application requested an operation that depends on an SDK component that is missing or mismatched.
pub const ERROR_SDK_COMPONENT_MISSING : HResultError = from_constant; // DXGI_ERROR_SDK_COMPONENT_MISSING
/// The DXGI objects that the application has created are no longer current & need to be recreated for this operation to be performed.
pub const ERROR_NOT_CURRENT : HResultError = from_constant; // DXGI_ERROR_NOT_CURRENT
/// Insufficient HW protected memory exits for proper function.
pub const ERROR_HW_PROTECTION_OUTOFMEMORY : HResultError = from_constant; // DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY
/// Creating this device would violate the process's dynamic code policy.
pub const ERROR_DYNAMIC_CODE_POLICY_VIOLATION : HResultError = from_constant; // DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION
/// The operation failed because the compositor is not in control of the output.
pub const ERROR_NON_COMPOSITED_UI : HResultError = from_constant; // DXGI_ERROR_NON_COMPOSITED_UI
/// An on-going mode change prevented completion of the call. The call may succeed if attempted later.
pub const ERROR_MODE_CHANGE_IN_PROGRESS : HResultError = from_constant; // DXGI_ERROR_MODE_CHANGE_IN_PROGRESS
/// The cache is corrupt and either could not be opened or could not be reset.
pub const ERROR_CACHE_CORRUPT : HResultError = from_constant; // DXGI_ERROR_CACHE_CORRUPT
/// This entry would cause the cache to exceed its quota. On a load operation, this may indicate exceeding the maximum in-memory size.
pub const ERROR_CACHE_FULL : HResultError = from_constant; // DXGI_ERROR_CACHE_FULL
/// A cache entry was found, but the key provided does not match the key stored in the entry.
pub const ERROR_CACHE_HASH_COLLISION : HResultError = from_constant; // DXGI_ERROR_CACHE_HASH_COLLISION
/// The desired element already exists.
pub const ERROR_ALREADY_EXISTS : HResultError = from_constant; // DXGI_ERROR_ALREADY_EXISTS
/// The allocation of the MPO plane has been unpinned
pub const ERROR_MPO_UNPINNED : HResultError = from_constant; // DXGI_ERROR_MPO_UNPINNED