1010#define _HLSL_HLSL_SPIRV_H_
1111
1212namespace 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