Adding cubemap support for texture queries