mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-06 13:15:59 +00:00
Where the intrinsic uses the fixed-dimension form of the types. Change-Id: I1709382f762fe7394bbd88f428f09b15a1a8a643 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108642 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com>
20 lines
310 B
WebGPU Shading Language
20 lines
310 B
WebGPU Shading Language
fn cross_041cb0() {
|
|
var res : vec3<f32> = cross(vec3<f32>(1.0f), vec3<f32>(1.0f));
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
cross_041cb0();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
cross_041cb0();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
cross_041cb0();
|
|
}
|