mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 19:55:37 +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>
27 lines
476 B
GLSL
27 lines
476 B
GLSL
#version 310 es
|
|
|
|
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;
|
|
}
|
|
|
|
|
|
void tint_symbol() {
|
|
float tint_symbol_1 = 1.25f;
|
|
frexp_result res = tint_frexp(tint_symbol_1);
|
|
float tint_symbol_2 = res.fract;
|
|
int tint_symbol_3 = res.exp;
|
|
}
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void main() {
|
|
tint_symbol();
|
|
return;
|
|
}
|