mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-06 06:33:30 +00:00
Constructing a null vector, matrix or array does not need to provide an explicit list of null elements. `T()` is a more efficient and readable equivalent. Fuzzers like to generate enormous pathological composite types, which has been triggering OOM failures. Bug: oss-fuzz:38095 Bug: oss-fuzz:39235 Bug: oss-fuzz:39246 Bug: oss-fuzz:39874 Change-Id: I910bb04bdd0e80532c09fc038be895ec37d3d380 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/75426 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
15 lines
324 B
WebGPU Shading Language
15 lines
324 B
WebGPU Shading Language
fn main_1() {
|
|
var v : vec3<f32> = vec3<f32>();
|
|
let x_14 : f32 = v.y;
|
|
let x_16 : vec3<f32> = v;
|
|
let x_17 : vec2<f32> = vec2<f32>(x_16.x, x_16.z);
|
|
let x_18 : vec3<f32> = v;
|
|
let x_19 : vec3<f32> = vec3<f32>(x_18.x, x_18.z, x_18.y);
|
|
return;
|
|
}
|
|
|
|
[[stage(compute), workgroup_size(1, 1, 1)]]
|
|
fn main() {
|
|
main_1();
|
|
}
|