Click or drag to resize
AB4D logo

ContextStatesManagerReset(ContextStatesManagerResetType, Boolean, Boolean) Method

Resets the specified cached resource states. This can be called if some state were not set by ContextStatesManager but were directly set by the application so the current values stored in ContextStatesManager are not valid any more.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public void Reset(
	ContextStatesManagerResetType resetType,
	bool resetBoundGpuResources = true,
	bool resetLockedStates = true
)

Parameters

resetType  ContextStatesManagerResetType
ResetType defines what resources are reset
resetBoundGpuResources  Boolean  (Optional)
when true (by default), the GPU resources that were bound through this ContextStatesManager will be reset to null
resetLockedStates  Boolean  (Optional)
when true (by default) the IsBlendStateLocked, IsDepthStencilStateLocked, IsRasterizerStateLocked and IsSamplerStateLocked are reset to false. When false, the locked state is not reset by this method.
See Also