mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-04 12:16:10 +00:00
This CL adds const-eval for the `inverseSqrt` builtin. Bug: tint:1581 Change-Id: Ieef063416a8033b5fac9396e30c76c20b3360a90 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111581 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
21 lines
345 B
WebGPU Shading Language
21 lines
345 B
WebGPU Shading Language
fn determinant_1bf6e7() {
|
|
const arg_0 = mat2x2(1.0, 1.0, 1.0, 1.0);
|
|
var res = determinant(arg_0);
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
determinant_1bf6e7();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
determinant_1bf6e7();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
determinant_1bf6e7();
|
|
}
|