27 lines
404 B
GLSL
27 lines
404 B
GLSL
|
#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;
|
||
|
}
|
||
|
|