mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-02 12:41:36 +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>
12 lines
194 B
WebGPU Shading Language
12 lines
194 B
WebGPU Shading Language
fn main_1() {
|
|
var m : mat3x3<f32> = mat3x3<f32>();
|
|
let x_15 : vec3<f32> = m[1];
|
|
let x_16 : f32 = x_15.y;
|
|
return;
|
|
}
|
|
|
|
[[stage(compute), workgroup_size(1, 1, 1)]]
|
|
fn main() {
|
|
main_1();
|
|
}
|