public static void SetDepthStencilState(DeviceContext context, DepthConfigurationType type) { context.OutputMerger.DepthStencilState = m_DepthStencilStates[(int)type]; }