Enumeration variables in shader parameter UI

Writing enum=A|B|C in the UI hint comment now creates a combo box with
options A, B and C, where the selected index is mapped to an integer in
the shader.