SPIRV-Cross/reference/shaders-msl-no-opt/frag/16bit-constants.invalid.frag
2019-11-06 10:40:37 +01:00

22 lines
325 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
{
half foo [[color(0)]];
short bar [[color(1)]];
ushort baz [[color(2)]];
};
fragment main0_out main0()
{
main0_out out = {};
out.foo = half(1.0);
out.bar = short(2);
out.baz = ushort(3);
return out;
}