mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +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>
19 lines
335 B
Plaintext
19 lines
335 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
void main_1() {
|
|
float3 v = float3();
|
|
float const x_14 = v[1];
|
|
float3 const x_16 = v;
|
|
float2 const x_17 = float2(x_16[0], x_16[2]);
|
|
float3 const x_18 = v;
|
|
float3 const x_19 = float3(x_18[0], x_18[2], x_18[1]);
|
|
return;
|
|
}
|
|
|
|
kernel void tint_symbol() {
|
|
main_1();
|
|
return;
|
|
}
|
|
|