mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-06 20:25:44 +00:00
Also add abstract overloads. Bug: tint:1581 Fixed: tint:1768 Change-Id: Icda465e0cfe960b77823c2135f0cfe8f82ed394f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111441 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
17 lines
369 B
Plaintext
17 lines
369 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
|
|
struct frexp_result {
|
|
float fract;
|
|
int exp;
|
|
};
|
|
kernel void tint_symbol() {
|
|
frexp_result const tint_symbol_1 = frexp_result{.fract=0.625f, .exp=1};
|
|
float const fract = tint_symbol_1.fract;
|
|
frexp_result const tint_symbol_2 = frexp_result{.fract=0.625f, .exp=1};
|
|
int const exp = tint_symbol_2.exp;
|
|
return;
|
|
}
|
|
|