GetDevice() and GetDeviceContext() are const methods.