| 1 |
//===----- hlsl.h - HLSL definitions --------------------------------------===// |
| 2 |
// |
| 3 |
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 |
// See https://llvm.org/LICENSE.txt for license information. |
| 5 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 |
// |
| 7 |
//===----------------------------------------------------------------------===// |
| 8 |
|
| 9 |
#ifndef _HLSL_H_ |
| 10 |
#define _HLSL_H_ |
| 11 |
|
| 12 |
#if defined(__clang__) |
| 13 |
// Don't warn about any of the DXC compatibility warnings in the clang-only |
| 14 |
// headers since these will never be used with DXC anyways. |
| 15 |
#pragma clang diagnostic push |
| 16 |
#pragma clang diagnostic ignored "-Whlsl-dxc-compatability" |
| 17 |
#endif |
| 18 |
|
| 19 |
// Basic types, type traits and type-independent templates. |
| 20 |
#include "hlsl/hlsl_basic_types.h" |
| 21 |
#include "hlsl/hlsl_detail.h" |
| 22 |
|
| 23 |
// HLSL standard library function declarations/definitions. |
| 24 |
#include "hlsl/hlsl_alias_intrinsics.h" |
| 25 |
#if __HLSL_VERSION <= __HLSL_202x |
| 26 |
#include "hlsl/hlsl_compat_overloads.h" |
| 27 |
#endif |
| 28 |
#include "hlsl/hlsl_intrinsics.h" |
| 29 |
|
| 30 |
#ifdef __spirv__ |
| 31 |
#include "hlsl/hlsl_spirv.h" |
| 32 |
#endif // __spirv__ |
| 33 |
|
| 34 |
#if defined(__clang__) |
| 35 |
#pragma clang diagnostic pop |
| 36 |
#endif |
| 37 |
|
| 38 |
#endif //_HLSL_H_ |