fix compile shader on shadergen (implicit cast)

fix compile shader