File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 4
4
#ifndef _NBL_BUILTIN_HLSL_MPL_INCLUDED_
5
5
#define _NBL_BUILTIN_HLSL_MPL_INCLUDED_
6
6
7
- #ifdef __HLSL_VERSION
7
+
8
8
#include <nbl/builtin/hlsl/type_traits.hlsl>
9
9
#include <nbl/builtin/hlsl/bit.hlsl>
10
- #else
11
- #include <bit>
12
10
13
- #endif
14
11
15
12
namespace nbl
16
13
{
Original file line number Diff line number Diff line change 7
7
// C++ headers
8
8
#ifndef __HLSL_VERSION
9
9
#include <type_traits>
10
- #include <nbl/builtin/hlsl/cpp_compat/matrix .hlsl>
11
10
#endif
12
11
12
+ // include cpp_compat.hlsl through matrix.hlsl for HLSL and glm::* typedefs for C++
13
+
14
+ #include <nbl/builtin/hlsl/cpp_compat/matrix .hlsl>
13
15
// Since HLSL currently doesnt allow type aliases we declare them as seperate structs thus they are (WORKAROUND)s
14
16
/*
15
17
// helper class
You can’t perform that action at this time.
0 commit comments