mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-12 16:15:55 +00:00
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>
20 lines
293 B
WebGPU Shading Language
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();
|
|
}
|