2021-06-18 09:47:23 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
2021-10-14 10:10:45 +00:00
|
|
|
kernel void tint_symbol(texture2d<uint, access::sample> tint_symbol_1 [[texture(0)]], texture2d<uint, access::write> tint_symbol_2 [[texture(1)]]) {
|
2021-06-18 09:47:23 +00:00
|
|
|
uint4 srcValue = 0u;
|
2021-10-14 10:10:45 +00:00
|
|
|
uint4 const x_22 = tint_symbol_1.read(uint2(int2(0, 0)), 0);
|
2021-06-18 09:47:23 +00:00
|
|
|
srcValue = x_22;
|
2021-10-20 16:12:33 +00:00
|
|
|
uint const x_24 = srcValue[0];
|
2021-06-18 09:47:23 +00:00
|
|
|
uint const x_25 = (x_24 + 1u);
|
|
|
|
uint4 const x_27 = srcValue;
|
2021-10-20 16:12:33 +00:00
|
|
|
tint_symbol_2.write(uint4(x_27).xxxx, uint2(int2(0, 0)));
|
2021-06-18 09:47:23 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-06-10 18:49:14 +00:00
|
|
|
|