d3dx9: Introduce helper functions to operate on constant handles.