#include <metal_stdlib> | |
using namespace metal; | |
int tint_clamp(int e, int low, int high) { | |
return min(max(e, low), high); | |
} | |
void d(texture1d<int, access::sample> tint_symbol) { | |
uint const level_idx = min(0u, (tint_symbol.get_num_mip_levels() - 1u)); | |
int4 const tint_phony = tint_symbol.read(uint(tint_clamp(1, 0, int((tint_symbol.get_width(0) - 1u)))), 0); | |
float const l = 0.14112000167369842529f; | |
} | |