mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-04 20:25:56 +00:00
This CL adds const-eval for `trunc`. Bug: tint:1581 Change-Id: If58f79ea70fe490746e30ed118d847c61edd8023 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110173 Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
20 lines
293 B
WebGPU Shading Language
20 lines
293 B
WebGPU Shading Language
fn trunc_562d05() {
|
|
var res : vec3<f32> = trunc(vec3<f32>(1.5f));
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
trunc_562d05();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
trunc_562d05();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
trunc_562d05();
|
|
}
|