aliaspider 501fd33b68 Squashed 'deps/SPIRV-Cross/' content from commit d4b0625cbd
git-subtree-dir: deps/SPIRV-Cross
git-subtree-split: d4b0625cbd7377e720b4fa1d63e6a3c09da5db63
2018-02-02 11:53:59 +01:00

24 lines
453 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_in
{
float2 vTex [[user(locn1)]];
float4 vColor [[user(locn0)]];
};
struct main0_out
{
float4 FragColor [[color(0)]];
};
fragment main0_out main0(main0_in in [[stage_in]], texture2d<float> uTex [[texture(0)]], sampler uTexSmplr [[sampler(0)]])
{
main0_out out = {};
out.FragColor = in.vColor * uTex.sample(uTexSmplr, in.vTex);
return out;
}