mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 18:55:39 +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
538 B
Plaintext
34 lines
538 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
void atanh_ec4b06() {
|
|
half3 res = half3(0.0h);
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value [[position]];
|
|
};
|
|
|
|
float4 vertex_main_inner() {
|
|
atanh_ec4b06();
|
|
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_ec4b06();
|
|
return;
|
|
}
|
|
|
|
kernel void compute_main() {
|
|
atanh_ec4b06();
|
|
return;
|
|
}
|
|
|