![]() |
wisdom
|
When an operation is performed, a WisResult structure is returned to indicate the outcome of the operation.
C version:
C++ version:
status defines operation status. Compare with WisStatusOk.platform_code indicates platform code from underlying implementation. Is an HRESULT for DX12 and a VkResult for Vulkan.error specifies contains a human readable error message.To check if an operation succeeded, the return code is greater or equal to 0. Negative values indicate failure. Some operations may return positive codes other than WisStatusOk, indicating partial success, timeout or additional information about the operation. The structure also contains platform_code, which provides additional information about the result from the underlying graphics API.
error contains a human-readable error message, which may provide additional context about the failure. The message is static and must not be freed or modified.