mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 00:26:00 +00:00
This CL adds const-eval for the `step` builtin. Bug: tint:1581 Change-Id: Idbf773fb88892a8a5e620bcfe8b779dee148f746 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107281 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
20 lines
265 B
WebGPU Shading Language
20 lines
265 B
WebGPU Shading Language
fn step_f9b70c() {
|
|
var res = step(1, 1);
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
step_f9b70c();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
step_f9b70c();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
step_f9b70c();
|
|
}
|