| 1 |
#include <metal_stdlib> |
| 2 |
#include <simd/simd.h> |
| 3 |
|
| 4 |
using namespace metal; |
| 5 |
|
| 6 |
struct main0_out |
| 7 |
{ |
| 8 |
float4 out_var_SV_Target0 [[color(0)]]; |
| 9 |
}; |
| 10 |
|
| 11 |
struct main0_in |
| 12 |
{ |
| 13 |
float2 in_var_TEXCOORD0 [[user(locn0)]]; |
| 14 |
}; |
| 15 |
|
| 16 |
fragment main0_out main0(main0_in in [[stage_in]], texture2d<float> g_texture [[texture(0)]], sampler g_sampler [[sampler(0)]], sampler g_comp [[sampler(1)]]) |
| 17 |
{ |
| 18 |
main0_out out = {}; |
| 19 |
out.out_var_SV_Target0 = g_texture.gather(g_sampler, in.in_var_TEXCOORD0, int2(0), component::x) * g_texture.gather(g_sampler, in.in_var_TEXCOORD0, int2(0), component::y); |
| 20 |
return out; |
| 21 |
} |
| 22 |
|