mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-16 01:56:09 +00:00
We don't want to replace builtins that are constant-expression evaluated, as the replacement cannot be used as a constant expression. Fixed: tint:1667 Change-Id: I554d9884fc41890247ee64b47a70621be5fcdbe5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107680 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
34 lines
548 B
Plaintext
34 lines
548 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
void atanh_f3e01b() {
|
|
float4 res = float4(0.549306154f);
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value [[position]];
|
|
};
|
|
|
|
float4 vertex_main_inner() {
|
|
atanh_f3e01b();
|
|
return float4(0.0f);
|
|
}
|
|
|
|
vertex tint_symbol vertex_main() {
|
|
float4 const inner_result = vertex_main_inner();
|
|
tint_symbol wrapper_result = {};
|
|
wrapper_result.value = inner_result;
|
|
return wrapper_result;
|
|
}
|
|
|
|
fragment void fragment_main() {
|
|
atanh_f3e01b();
|
|
return;
|
|
}
|
|
|
|
kernel void compute_main() {
|
|
atanh_f3e01b();
|
|
return;
|
|
}
|
|
|