diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-02 16:39:36 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-02 16:39:36 -0800 |
| commit | 6c8ae19be66cee247980a48e736a4e05d14de179 (patch) | |
| tree | d860767907bf0cbe17ec66422e11bea700cf56d9 /contrib/dxc_2025_07_14/inc/dxcerrors.h | |
| parent | 8f594c8ebd11f0e5f8a0c6369c3fe7383d250cbe (diff) | |
Diffstat (limited to 'contrib/dxc_2025_07_14/inc/dxcerrors.h')
| -rw-r--r-- | contrib/dxc_2025_07_14/inc/dxcerrors.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/dxc_2025_07_14/inc/dxcerrors.h b/contrib/dxc_2025_07_14/inc/dxcerrors.h new file mode 100644 index 0000000..ce50b83 --- /dev/null +++ b/contrib/dxc_2025_07_14/inc/dxcerrors.h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | /////////////////////////////////////////////////////////////////////////////// | ||
| 2 | // // | ||
| 3 | // dxcerror.h // | ||
| 4 | // Copyright (C) Microsoft Corporation. All rights reserved. // | ||
| 5 | // This file is distributed under the University of Illinois Open Source // | ||
| 6 | // License. See LICENSE.TXT for details. // | ||
| 7 | // // | ||
| 8 | // Provides definition of error codes. // | ||
| 9 | // // | ||
| 10 | /////////////////////////////////////////////////////////////////////////////// | ||
| 11 | |||
| 12 | #ifndef __DXC_ERRORS__ | ||
| 13 | #define __DXC_ERRORS__ | ||
| 14 | |||
| 15 | #ifndef FACILITY_GRAPHICS | ||
| 16 | #define FACILITY_GRAPHICS 36 | ||
| 17 | #endif | ||
| 18 | |||
| 19 | #define DXC_EXCEPTION_CODE(name, status) \ | ||
| 20 | static constexpr DWORD EXCEPTION_##name = \ | ||
| 21 | (0xc0000000u | (FACILITY_GRAPHICS << 16) | \ | ||
| 22 | (0xff00u | (status & 0xffu))); | ||
| 23 | |||
| 24 | DXC_EXCEPTION_CODE(LOAD_LIBRARY_FAILED, 0x00u) | ||
| 25 | DXC_EXCEPTION_CODE(NO_HMODULE, 0x01u) | ||
| 26 | DXC_EXCEPTION_CODE(GET_PROC_FAILED, 0x02u) | ||
| 27 | |||
| 28 | #undef DXC_EXCEPTION_CODE | ||
| 29 | |||
| 30 | #endif | ||
