Skip to content

Allow unbound descriptors in descriptor sets.#126

Merged
crud89 merged 2 commits intomainfrom
allow-unbound-descriptors
Feb 27, 2024
Merged

Allow unbound descriptors in descriptor sets.#126
crud89 merged 2 commits intomainfrom
allow-unbound-descriptors

Conversation

@crud89
Copy link
Copy Markdown
Owner

@crud89 crud89 commented Feb 27, 2024

Describe the pull request

Currently trying to update a descriptor in a descriptor set, that does not exist in the pipeline layout throws an exception. However, when authoring shaders, it is common that descriptors are not actually used and get removed from the shader. Shader reflection in this case does produce a pipeline layout without the descriptor, which then would cause an exception to be thrown. To simplify this process, this no longer throws with this PR, but rather issues a warning. This removes the need for changing the application itself frequently during shader development.

@crud89 crud89 added Vulkan πŸŒ‹ The issue involves the Vulkan backend. DX12 ❎ The issue involves the DX12 backend. labels Feb 27, 2024
@crud89 crud89 added this to the Alpha #04 milestone Feb 27, 2024
@crud89 crud89 self-assigned this Feb 27, 2024
@crud89 crud89 marked this pull request as ready for review February 27, 2024 17:24
@crud89 crud89 merged commit 131422d into main Feb 27, 2024
@crud89 crud89 deleted the allow-unbound-descriptors branch February 27, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DX12 ❎ The issue involves the DX12 backend. Vulkan πŸŒ‹ The issue involves the Vulkan backend.

Projects

Status: v0.4.1

Development

Successfully merging this pull request may close these issues.

1 participant