![]() |
wisdom
|
WisStatus - Common return status codes.
Common return status codes. Used to communicate success or failure of operations from the underlying API. There are 2 categories of status codes: non-negative values indicate success, and negative values indicate failure.
WisStatusError is used for general errors. This means that the operation failed, but no common error code is suit to describe the error. Specific details may be provided by platform code or by other means (e.g., error callbacks, logs, etc.).Common return status codes are:
C version:
C++ version:
Defines common return status codes. Compare against WisStatusOk for success.
Values:
WisStatusOk = 0: Operation succeeded.WisStatusTimeout = 1: Operation timed out.WisStatusPartial = 2: Operation partially succeeded.WisStatusInvalidArgument = -1: One or more arguments, or parts of arguments passed to the function were incorrect.WisStatusOutOfHostMemory = -2: There is no more host memory available.WisStatusOutOfDeviceMemory = -3: There is no more device memory available.WisStatusDeviceLost = -4: Device driver was forcefully stopped.WisStatusOccluded = -5: Swap chain presentation was not visible to the user. Rendering is too fast.WisStatusValidationFailed = -6: A validation layer found an error.WisStatusFail = -7: Operation failed as expected.WisStatusError = -10000: Operation failed.Performance critical commands should avoid returning error codes when possible. Instead they may report errors on command list close.