#include <metal_stdlib>
using namespace metal;

struct tint_symbol_outputs {
  float4 tint_symbol_1 [[position]];
};

float4 tint_symbol_inner(uint b) {
  return float4(float(b));
}

vertex tint_symbol_outputs tint_symbol(uint b [[instance_id]]) {
  tint_symbol_outputs tint_wrapper_result = {};
  tint_wrapper_result.tint_symbol_1 = tint_symbol_inner(b);
  return tint_wrapper_result;
}
