19#ifdef __HLSL_ENABLE_16_BIT
20#define _HLSL_16BIT_AVAILABILITY(platform, version, ...) \
21 __attribute__((availability(platform, introduced = version)))
22#define _HLSL_16BIT_AVAILABILITY_STAGE(platform, version, stage) \
24 availability(platform, introduced = version, environment = stage)))
25#define _HLSL_16BIT_AVAILABILITY_SHADERMODEL_DEFAULT() \
26 _HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
28#define _HLSL_16BIT_AVAILABILITY(platform, version, ...) \
29 __VA_OPT__(_HLSL_AVAILABILITY(platform, __VA_ARGS__))
30#define _HLSL_16BIT_AVAILABILITY_STAGE(environment, version, stage)
31#define _HLSL_16BIT_AVAILABILITY_SHADERMODEL_DEFAULT()
35#include "hlsl_alias_intrinsics_gen.inc"
72template <
int R,
int C>
77template <typename T,
int R,
int C>
79vector<T,
C>
mul(vector<T,
R>, matrix<T,
R,
C>);
82template <
int R,
int C>
87template <typename T,
int R,
int C>
89vector<T,
R>
mul(matrix<T,
R,
C>, vector<T,
C>);
92template <
int R,
int K,
int C>
95 matrix<half,
R, K>, matrix<half, K,
C>);
97template <typename T,
int R,
int K,
int C>
99matrix<T,
R,
C>
mul(matrix<T,
R, K>, matrix<T, K,
C>);
109template <
int R,
int C>
114template <typename T,
int R,
int C>
140template <typename T,
int N>
144 vector<T, N>, vector<T, N>);
154template <typename T,
int N>
167template <typename T,
int N>
180template <typename T, typename
U,
int N>
183select(vector<
U, N> Conds, T TrueVal, T FalseVal) {
184 return __builtin_hlsl_select((vector<bool, N>)Conds, TrueVal, FalseVal);
195template <
typename T,
int R,
int C>
199 __detail::type_identity_t<matrix<
bool,
R,
C>>>,
200 matrix<T,
R,
C>, matrix<T,
R,
C>);
210template <typename T,
int R,
int C>
214 __detail::type_identity_t<matrix<
bool,
R,
C>>>,
224template <typename T,
int R,
int C>
228 __detail::type_identity_t<matrix<
bool,
R,
C>>>,
237template <typename T,
int R,
int C>
250template <typename T, typename
U,
int R,
int C>
254 return select((matrix<bool, R, C>)Conds, TrueVal, FalseVal);