d7cc093f1f
Constructors such as `float[2](0, 0)` add a type to the symbol table; this type needs to be copied into the new symbol table if the constructor is cloned by the inliner. Change-Id: Ifa8d2dec87103c6223ce493e2201a904c14c2137 Bug: oss-fuzz:28050 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/339168 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
14 lines
362 B
Metal
14 lines
362 B
Metal
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
using namespace metal;
|
|
struct Inputs {
|
|
};
|
|
struct Outputs {
|
|
float4 sk_FragColor [[color(0)]];
|
|
};
|
|
fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
|
|
Outputs _outputStruct;
|
|
thread Outputs* _out = &_outputStruct;
|
|
return *_out;
|
|
}
|