mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-12 16:15:55 +00:00
This CL adds const-eval for `round`. Bug: tint:1581 Change-Id: I16ebb2010969debb8de50479235d9d9f5433c0a1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110175 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
20 lines
301 B
WebGPU Shading Language
20 lines
301 B
WebGPU Shading Language
fn round_52c84d() {
|
|
var res : vec2<f32> = round(vec2<f32>(3.400000095f));
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
round_52c84d();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
round_52c84d();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
round_52c84d();
|
|
}
|