Skip to content

Commit d1b1351

Browse files
committed
fix include guards
1 parent 97e45ad commit d1b1351

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

include/nbl/builtin/hlsl/mpl.hlsl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
#ifndef _NBL_BUILTIN_HLSL_MPL_INCLUDED_
55
#define _NBL_BUILTIN_HLSL_MPL_INCLUDED_
66

7-
#ifdef __HLSL_VERSION
7+
88
#include <nbl/builtin/hlsl/type_traits.hlsl>
99
#include <nbl/builtin/hlsl/bit.hlsl>
10-
#else
11-
#include <bit>
1210

13-
#endif
1411

1512
namespace nbl
1613
{

include/nbl/builtin/hlsl/type_traits.hlsl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
// C++ headers
88
#ifndef __HLSL_VERSION
99
#include <type_traits>
10-
#include <nbl/builtin/hlsl/cpp_compat/matrix.hlsl>
1110
#endif
1211

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>
1315
// Since HLSL currently doesnt allow type aliases we declare them as seperate structs thus they are (WORKAROUND)s
1416
/*
1517
// helper class

0 commit comments

Comments
 (0)