# How do I change rasterizer state properly?

To set the rasterizer state I have to ID3D11Device::CreateRasterizerState() and then ID3D11DeviceContext::RSSetState. And then I should ID3D11RasterizerState::Release() it, right?

• How about when I want to change the state? Do I follow the above 3 steps again?
• When I want to change just 1 setting (i.e. only CullMode) do I still have to fill and set whole structure?
• Also, do I have to create and release the state object each time (assuming I don't want to set the exact same state again in the future)?
• How about performance? If I set the exact same state again does it do anything? Is there a difference between changing only 1 setting or most/all of them?