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_in
{
int4 vIn1 [[user(locn1)]];
float4 vIn [[user(locn0)]];
};
struct main0_out
{
float4 FragColor [[color(0)]];
};
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;
}