| 1 |
#include <metal_stdlib> |
| 2 |
#include <simd/simd.h> |
| 3 |
|
| 4 |
using namespace metal; |
| 5 |
|
| 6 |
struct main0_out |
| 7 |
{ |
| 8 |
float4 FragColor0 [[color(0)]]; |
| 9 |
float4 FragColor1 [[color(1)]]; |
| 10 |
}; |
| 11 |
|
| 12 |
struct main0_in |
| 13 |
{ |
| 14 |
float4 VertGeom [[user(locn0)]]; |
| 15 |
}; |
| 16 |
|
| 17 |
fragment main0_out main0(main0_in in [[stage_in]], texture2d<float> TextureBase [[texture(0)]], texture2d<float> TextureDetail [[texture(1)]], sampler TextureBaseSmplr [[sampler(0)]], sampler TextureDetailSmplr [[sampler(1)]]) |
| 18 |
{ |
| 19 |
main0_out out = {}; |
| 20 |
float4 _22 = TextureBase.sample(TextureBaseSmplr, float2(in.VertGeom.x, 0.5)); |
| 21 |
float4 _30 = TextureDetail.sample(TextureDetailSmplr, float2(in.VertGeom.x, 0.5), int2(3, 0)); |
| 22 |
out.FragColor0 = as_type<float4>(as_type<int4>(_22)) * as_type<float4>(as_type<int4>(_30)); |
| 23 |
out.FragColor1 = as_type<float4>(as_type<uint4>(_22)) * as_type<float4>(as_type<uint4>(_30)); |
| 24 |
return out; |
| 25 |
} |
| 26 |
|