Files
bgfx/3rdparty/directx-headers/include/directx/dxcerrors.h
Branimir Karadžić 33541e4bab D3D12: Added DXIL support. (#3558)
* Added DXIL support.

* Fixed Linux build.

* Fixed mingw build.

* Fixed build.
2026-01-20 01:43:31 +00:00

31 lines
1.3 KiB
C

///////////////////////////////////////////////////////////////////////////////
// //
// dxcerror.h //
// Copyright (C) Microsoft Corporation. All rights reserved. //
// This file is distributed under the University of Illinois Open Source //
// License. See LICENSE.TXT for details. //
// //
// Provides definition of error codes. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef __DXC_ERRORS__
#define __DXC_ERRORS__
#ifndef FACILITY_GRAPHICS
#define FACILITY_GRAPHICS 36
#endif
#define DXC_EXCEPTION_CODE(name, status) \
static constexpr DWORD EXCEPTION_##name = \
(0xc0000000u | (FACILITY_GRAPHICS << 16) | \
(0xff00u | (status & 0xffu)));
DXC_EXCEPTION_CODE(LOAD_LIBRARY_FAILED, 0x00u)
DXC_EXCEPTION_CODE(NO_HMODULE, 0x01u)
DXC_EXCEPTION_CODE(GET_PROC_FAILED, 0x02u)
#undef DXC_EXCEPTION_CODE
#endif