summaryrefslogtreecommitdiffstats
path: root/tools/gfx/vulkan/vk-command-encoder.cpp
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-05-07 08:27:27 -0700
committerGitHub <noreply@github.com>2024-05-07 08:27:27 -0700
commit997f040f48b5c34e20ad6b0f512bb9d1ae6e6128 (patch)
treecd5465de90902e029702251766f6183e5dcc3014 /tools/gfx/vulkan/vk-command-encoder.cpp
parent1b3a428bfa24350d9d69b092747b4ad142b7c4b4 (diff)
Support Metal math functions (#4118)
* Support Metal math functions Closes #4024 Note that Metal document says Metal doesn't support "double" type; "Metal does not support the double, long long, unsigned long long, and long double data types." According to Metal document, math functions are not defined for integer types. That leaves only two types to test: half and float. As a code clean up, __floatCast is replaced with __realCast. But I had to add a new signature that can convert from integer to float. Some of GLSL functions are moved to hlsl.meta.slang. For those functions, there isn't builtin functions for HLSL but there are for GLSL and Metal. "nextafter(T,T)" is currently not working because it requires Metal version 3.1 and we invoke metal compiler with a profile version lower than 3.1. * Changes based on review comments.
Diffstat (limited to 'tools/gfx/vulkan/vk-command-encoder.cpp')
0 files changed, 0 insertions, 0 deletions