change from shaderec to hitinfo functional style