Skip to content

Commit 7bdc924

Browse files
committed
Fix formatting; remove unused code
1 parent 78ac1bc commit 7bdc924

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

clang/lib/Headers/hlsl/hlsl_spirv.h

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,19 @@
1010
#define _HLSL_HLSL_SPIRV_H_
1111

1212
namespace hlsl {
13-
namespace vk {
14-
// template <class T> using Foo = __hlsl_spirv_t;
15-
// typedef Foo
16-
template <typename T, T v> struct integral_constant {
17-
static constexpr T value = v;
18-
};
19-
20-
template <typename T> struct Literal {};
21-
22-
template <uint Opcode, uint Size, uint Alignment, typename... Operands>
23-
using SpirvType = __hlsl_spirv_type<Opcode, Size, Alignment, Operands...>;
24-
25-
template <uint Opcode, typename... Operands>
26-
using SpirvOpaqueType = __hlsl_spirv_type<Opcode, 0, 0, Operands...>;
27-
} // namespace vk
28-
} // namespace hlsl
13+
namespace vk {
14+
template <typename T, T v> struct integral_constant {
15+
static constexpr T value = v;
16+
};
17+
18+
template <typename T> struct Literal {};
19+
20+
template <uint Opcode, uint Size, uint Alignment, typename... Operands>
21+
using SpirvType = __hlsl_spirv_type<Opcode, Size, Alignment, Operands...>;
22+
23+
template <uint Opcode, typename... Operands>
24+
using SpirvOpaqueType = __hlsl_spirv_type<Opcode, 0, 0, Operands...>;
25+
} // namespace vk
26+
} // namespace hlsl
2927

3028
#endif // _HLSL_HLSL_SPIRV_H_

0 commit comments

Comments
 (0)