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