diff options
| author | bprb <58124331+bprb@users.noreply.github.com> | 2024-11-20 14:52:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-20 14:52:34 -0800 |
| commit | 4f6b928f54d2cc7f1fb6f40c16be7754b2ddcdc6 (patch) | |
| tree | f9e885b0a79f8f3b398c691eb4855da670119438 /source | |
| parent | 54ec7553c20673c541298ac39b95ccd25542aa7a (diff) | |
Add Matrix overload for exp10() core lib function (#5620)
Fixes #5579
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/hlsl.meta.slang | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang index 256f65224..7eb4af135 100644 --- a/source/slang/hlsl.meta.slang +++ b/source/slang/hlsl.meta.slang @@ -8245,6 +8245,18 @@ vector<T,N> exp10(vector<T,N> x) } } +__generic<T : __BuiltinFloatingPointType, let N : int, let M : int> +[__readNone] +[require(cpp_cuda_glsl_hlsl_metal_spirv_wgsl, sm_4_0_version)] +matrix<T,N,M> exp10(matrix<T,N,M> x) +{ + __target_switch + { + default: + MATRIX_MAP_UNARY(T, N, M, exp10, x); + } +} + /// Convert 16-bit float stored in low bits of integer /// @category conversion Conversion functions |
