SPIRV-Cross/reference/shaders-msl/asm/frag/op-constant-null.asm.frag
Hans-Kristian Arntzen b114889102 Only declare typed initializer list for non-array types.
Also, cleanup now redundant constant_expression virtualization for MSL.
2018-09-10 10:04:17 +02:00

30 lines
481 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct D
{
float4 a;
float b;
};
constant float4 _14[4] = { float4(0.0), float4(0.0), float4(0.0), float4(0.0) };
struct main0_out
{
float FragColor [[color(0)]];
};
fragment main0_out main0()
{
main0_out out = {};
float a = 0.0;
float4 b = float4(0.0);
float2x3 c = float2x3(float3(0.0), float3(0.0));
D d = D{ float4(0.0), 0.0 };
out.FragColor = a;
return out;
}