HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulevulkan-3.27GHC2021

Vulkan.Core10.Enums.Result

  • 1 type
  • Packagevulkan-3.27
  • Exports46
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceResult.hs
newtypenewtype Result
#

VkResult - Vulkan command return codes

Description

  • SUCCESS Command successfully completed

If a command returns a runtime error, unless otherwise specified any output parameters will have undefined contents, except that if the output parameter is a structure with sType and pNext fields, those fields will be unmodified. Any structures chained from pNext will also have undefined contents, except that sType and pNext will be unmodified.

VK_ERROR_OUT_OF_*_MEMORY errors do not modify any currently existing Vulkan objects. Objects that have already been successfully created can still be used by the application.

As a general rule, Free, Release, and Reset commands do not return ERROR_OUT_OF_HOST_MEMORY, while any other command with a return code may return it. Any exceptions from this rule are described for those commands.

ERROR_UNKNOWN will be returned by an implementation when an unexpected error occurs that cannot be attributed to valid behavior of the application and implementation. Under these conditions, it may be returned from any command returning a Result.

ERROR_UNKNOWN is not expected to ever be returned if the application behavior is valid, and if the implementation is bug-free. If ERROR_UNKNOWN is returned, the application should be checked against the latest validation layers to verify correct behavior as much as possible. If no issues are identified it could be an implementation issue, and the implementor should be contacted for support.

Any command returning a Result may return ERROR_VALIDATION_FAILED if a violation of valid usage is detected.

Performance-critical commands generally do not have return codes. If a runtime error occurs in such commands, the implementation will defer reporting the error until a specified point. For commands that record into command buffers (vkCmd*) runtime errors are reported by endCommandBuffer.

See Also

VK_VERSION_1_0, BindMemoryStatus, PresentInfoKHR

Constructors

Instances6Eq, Ord, Read, Show, Storable, Zero
  • Eq ResultDefined in vulkan-3.27 · Vulkan.Core10.Enums.Result
  • Ord ResultDefined in vulkan-3.27 · Vulkan.Core10.Enums.Result
  • Read ResultDefined in vulkan-3.27 · Vulkan.Core10.Enums.Result
  • Show ResultDefined in vulkan-3.27 · Vulkan.Core10.Enums.Result
  • Storable ResultDefined in vulkan-3.27 · Vulkan.Core10.Enums.Result
  • Zero ResultDefined in vulkan-3.27 · Vulkan.Core10.Enums.Result