using reflection for constant buffers