GRContext.AbandonContext(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Abandons all GPU resources and assumes the underlying backend 3D API context is not longer usable. After returning it will assume that the underlying context may no longer be valid.
public void AbandonContext (bool releaseResources = false);
Parameters
- releaseResources
- Boolean
Use true to indicate that the underlying 3D context is not yet lost and the GRContext will cleanup all allocated resources before returning. Using false will ensure that the destructors of the GRContext and any of its created resource objects will not make backend 3D API calls.