Description
The UsesTransientExecution method must return true if this device ever calls the SetTransientExecutionActive method on the IDeviceContext object associated with this device. If the device attempts to call the SetTransientExecutionActive method when it has not returned true from this method, an assertion failure may be triggered by the system.
Note that the return value from this method should be consistent after the device object has been created, and never change, otherwise errors may occur at runtime. The system uses this function as a hint to help it optimize performance.
The Device base class implements this method, and returns false by default. If a device derives from this base class, it doesn't need to implement this method unless it needs to call the SetTransientExecutionActive method.
Usage
virtual bool UsesTransientExecution() const;
Return value
- [bool]
- True if the device may call the SetTransientExecutionActive method at any point during its lifetime, false otherwise.