mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-12 08:05:53 +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
277 B
WebGPU Shading Language
20 lines
277 B
WebGPU Shading Language
fn step_7c7e5c() {
|
|
var res = step(vec2(1), vec2(1));
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
step_7c7e5c();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
step_7c7e5c();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
step_7c7e5c();
|
|
}
|