39 lines · c
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-exception6//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-only14// headers since these will never be used with DXC anyways.15#pragma clang diagnostic push16#pragma clang diagnostic ignored "-Whlsl-dxc-compatability"17#endif18 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_202x26#include "hlsl/hlsl_compat_overloads.h"27#endif28#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 pop36#endif37 38#endif //_HLSL_H_39