XLE
v0.02.0
|
Low-level save and restore of state information More...
#include <SceneEngineUtils.h>
Classes | |
struct | States |
Public Member Functions | |
ProtectState (RenderCore::Metal::DeviceContext &context, States::BitField states) | |
ProtectState (ProtectState &&moveFrom) | |
ProtectState & | operator= (ProtectState &&moveFrom) |
Low-level save and restore of state information
Handy utility for functions that want to restore the low-level GFX API state back to it's original state.
Often rendering utility functions need to change certain states on a temporary basis. This can be confusing to the caller, because it's often not clear what states will be affected.
States captured in the constructor will be restored to their previous values in the destructor.