Skip to content

Commit f1c5a77

Browse files
committed
fix splitting out subgroup params into separate file
1 parent 62353af commit f1c5a77

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

include/nbl/builtin/hlsl/subgroup2/arithmetic_params.hlsl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
#ifndef _NBL_BUILTIN_HLSL_SUBGROUP2_ARITHMETIC_PARAMS_INCLUDED_
55
#define _NBL_BUILTIN_HLSL_SUBGROUP2_ARITHMETIC_PARAMS_INCLUDED_
66

7-
7+
#ifdef __HLSL_VERSION
88
#include "nbl/builtin/hlsl/device_capabilities_traits.hlsl"
9+
#include "nbl/builtin/hlsl/subgroup2/ballot.hlsl"
10+
#endif
911
#include "nbl/builtin/hlsl/concepts.hlsl"
1012

11-
1213
namespace nbl
1314
{
1415
namespace hlsl

include/nbl/builtin/hlsl/subgroup2/arithmetic_portability.hlsl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
#ifndef _NBL_BUILTIN_HLSL_SUBGROUP2_ARITHMETIC_PORTABILITY_INCLUDED_
55
#define _NBL_BUILTIN_HLSL_SUBGROUP2_ARITHMETIC_PORTABILITY_INCLUDED_
66

7-
87
#include "nbl/builtin/hlsl/device_capabilities_traits.hlsl"
9-
10-
#include "nbl/builtin/hlsl/subgroup2/ballot.hlsl"
118
#include "nbl/builtin/hlsl/subgroup2/arithmetic_portability_impl.hlsl"
129

1310
namespace nbl

include/nbl/builtin/hlsl/workgroup2/shared_scan.hlsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "nbl/builtin/hlsl/workgroup/broadcast.hlsl"
88
#include "nbl/builtin/hlsl/glsl_compat/subgroup_basic.hlsl"
99
#include "nbl/builtin/hlsl/subgroup2/ballot.hlsl"
10+
#include "nbl/builtin/hlsl/subgroup2/arithmetic_params.hlsl"
1011
#include "nbl/builtin/hlsl/subgroup2/arithmetic_portability.hlsl"
1112
#include "nbl/builtin/hlsl/mpl.hlsl"
1213
#include "nbl/builtin/hlsl/workgroup2/arithmetic_config.hlsl"

0 commit comments

Comments
 (0)