-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy patharithmetic_portability.hlsl
33 lines (25 loc) · 1.13 KB
/
arithmetic_portability.hlsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (C) 2023 - DevSH Graphics Programming Sp. z O.O.
// This file is part of the "Nabla Engine".
// For conditions of distribution and use, see copyright notice in nabla.h
#ifndef _NBL_BUILTIN_HLSL_SUBGROUP_ARITHMETIC_PORTABILITY_INCLUDED_
#define _NBL_BUILTIN_HLSL_SUBGROUP_ARITHMETIC_PORTABILITY_INCLUDED_
#include "nbl/builtin/hlsl/device_capabilities_traits.hlsl"
#include "nbl/builtin/hlsl/subgroup/basic.hlsl"
#include "nbl/builtin/hlsl/subgroup/arithmetic_portability_impl.hlsl"
#include "nbl/builtin/hlsl/concepts.hlsl"
namespace nbl
{
namespace hlsl
{
namespace subgroup
{
template<class Binop, class device_capabilities=void>
struct reduction : impl::reduction<Binop,device_capabilities_traits<device_capabilities>::shaderSubgroupArithmetic> {};
template<class Binop, class device_capabilities=void>
struct inclusive_scan : impl::inclusive_scan<Binop,device_capabilities_traits<device_capabilities>::shaderSubgroupArithmetic> {};
template<class Binop, class device_capabilities=void>
struct exclusive_scan : impl::exclusive_scan<Binop,device_capabilities_traits<device_capabilities>::shaderSubgroupArithmetic> {};
}
}
}
#endif