dawn-cmake/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.wgsl
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

20 lines
293 B
WebGPU Shading Language

fn floor_3bccc4() {
var res : vec4<f32> = floor(vec4<f32>(1.5f));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
floor_3bccc4();
return vec4<f32>();
}
@fragment
fn fragment_main() {
floor_3bccc4();
}
@compute @workgroup_size(1)
fn compute_main() {
floor_3bccc4();
}