dawn-cmake/test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.dxc.hlsl
dan sinclair 91e27f25f9 Add const-eval for floor.
This Cl adds const-eval for the `floor` builtin.

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

32 lines
532 B
HLSL

void floor_3bccc4() {
float4 arg_0 = (1.5f).xxxx;
float4 res = floor(arg_0);
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
floor_3bccc4();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
floor_3bccc4();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
floor_3bccc4();
return;
}