SPIRV-Cross/reference/shaders-msl/frag/in_block_assign.noopt.frag
Hans-Kristian Arntzen f929078f1e Disable --opt for in_block_assign for now.
Bug: OpLoad fails when loading an interface struct directly, followed by
OpCompositeExtract. This should be fixed, but not critical enough to
block this PR.
2017-11-23 09:59:25 +01:00

31 lines
405 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct VOUT
{
float4 a;
};
struct main0_in
{
float4 VOUT_a [[user(locn0)]];
};
struct main0_out
{
float4 FragColor [[color(0)]];
};
fragment main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
VOUT tmp;
tmp.a = in.VOUT_a;
tmp.a += float4(1.0);
out.FragColor = tmp.a;
return out;
}