mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 10:45:36 +00:00
Fixed: tint:1757 Change-Id: Iacce6ab0f08f89abbe5831e6f2285a0c964e74d7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110100 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Auto-Submit: Ben Clayton <bclayton@google.com>
22 lines
383 B
Plaintext
22 lines
383 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
|
|
struct frexp_result {
|
|
float fract;
|
|
int exp;
|
|
};
|
|
frexp_result tint_frexp(float param_0) {
|
|
frexp_result result;
|
|
result.fract = frexp(param_0, result.exp);
|
|
return result;
|
|
}
|
|
|
|
kernel void tint_symbol() {
|
|
frexp_result const res = tint_frexp(1.230000019f);
|
|
int const exp = res.exp;
|
|
float const fract = res.fract;
|
|
return;
|
|
}
|
|
|