TBLContextErrorFlag
Error flags that are accumulated during the rendering context lifetime and that can be queried through TBLContext.AccumulatedErrorFlags
. The reason why these flags exist is that errors can happen during asynchronous rendering, and there is no way the user can catch these errors.
Definition
Unit: Blend2D
type TBLContextErrorFlag = (InvalidValue, InvalidState, InvalidGeometry, InvalidGlyph, InvalidFont, ThreadPoolExhausted, OutOfMemory, UnknownError)
See Also
Enumeration Values
InvalidValue = 0
The rendering context returned or encountered TBLResult.InvalidValue
, which is mostly related to the function argument handling. It's very likely some argument was wrong when calling TBLContext
API.
InvalidState = 1
Invalid state describes something wrong, for example a pipeline compilation error.
InvalidGeometry = 2
The rendering context has encountered invalid geometry.
InvalidGlyph = 3
The rendering context has encountered invalid glyph.
InvalidFont = 4
The rendering context has encountered invalid or uninitialized font.
ThreadPoolExhausted = 29
Thread pool was exhausted and couldn't acquire the requested number of threads.
OutOfMemory = 30
Out of memory condition.
UnknownError = 31
Unknown error, which we don't have flag for.