SPIRV-Cross/reference/shaders-msl/frag/unary-enclose.frag

27 lines
404 B
GLSL
Raw Normal View History

2017-07-24 08:17:19 +00:00
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
2017-07-24 08:17:19 +00:00
{
float4 FragColor [[color(0)]];
2017-07-24 08:17:19 +00:00
};
struct main0_in
2017-07-24 08:17:19 +00:00
{
float4 vIn [[user(locn0)]];
int4 vIn1 [[user(locn1)]];
2017-07-24 08:17:19 +00:00
};
fragment main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
out.FragColor = -(-in.vIn);
int4 a = ~(~in.vIn1);
bool b = false;
b = !(!b);
return out;
}