Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extensions: Always return pipeline/shaders, even on error #828

Merged
merged 1 commit into from
Mar 31, 2024

Commits on Mar 30, 2024

  1. extensions: Always return pipeline/shaders, even on error

    In `ash::Device` `create_compute_pipeline()` and
    `create_graphics_pipeline()` already return the list of pipelines
    regardless of the error code, as [documented in the Multiple Pipeline
    Creation chapter].  Callers are expected to scan the returned array
    for valid pipeline handles and either use or destroy them (when
    handling an error).  Furthermore, the caller is guaranteed that
    all handles will be NULL after the first returned NULL handle when
    `VK_PIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BIT` is set.
    
    An upstream Khronos/Vulkan request which has since been merged to the
    documentation makes all pipeline creation functions across the core and
    extensions point to this `Multiple Pipeline Creation` chapter which has
    also been improved, clarifying that they too return impartial results.
    This documentation reference has been embedded in `ash`.
    
    `VK_EXT_shader_object` is similar in nature, but has its own
    documentation to account for the difference in naming.
    
    [documented in the Multiple Pipeline Creation chapter]: https://registry.khronos.org/vulkan/specs/1.3-extensions/html/chap10.html#pipelines-multiple
    MarijnS95 committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    a907be8 View commit details
    Browse the repository at this point in the history