public void ClearState() { Shader.InitializeState(); ConstantBuffer.InitializeState(); Resources.InitializeState(); Samplers.InitializeState(); }