dawn-cmake/test/tint/builtins/gen/literal/log/cdbdc1.wgsl.expected.msl
dan sinclair f2ad5fd260 Add const-eval for log and log2.
This CL adds const-eval routines for `log` and `log2`.

Bug: tint:1581
Change-Id: I052b5ddd3bc8bdcd7c0925fa7912dcbe1a60e299
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111323
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
2022-11-23 17:34:40 +00:00

34 lines
530 B
Plaintext

#include <metal_stdlib>
using namespace metal;
void log_cdbdc1() {
half4 res = half4(0.0h);
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
log_cdbdc1();
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() {
log_cdbdc1();
return;
}
kernel void compute_main() {
log_cdbdc1();
return;
}