Skip to content

Decouple descriptor counts in descriptor layouts from unbounded array sizes.#166

Merged
crud89 merged 6 commits intomainfrom
explicit-unbounded-arrays
Sep 25, 2025
Merged

Decouple descriptor counts in descriptor layouts from unbounded array sizes.#166
crud89 merged 6 commits intomainfrom
explicit-unbounded-arrays

Conversation

@crud89
Copy link
Copy Markdown
Owner

@crud89 crud89 commented Sep 24, 2025

Describe the pull request

This PR removes the implicit relationship between descriptor counts in a descriptor layout and their treatment as unbounded runtime arrays. This allows for more granular setting of descriptor counts for unbounded arrays, which is important in the Vulkan backend, where multiple unbounded descriptor arrays can now be configured in a way that they do no longer exceed device limits. This is, however, currently only possible by defining the descriptor set from code. Support for shader reflection will be part of a future PR.

Related issues

@crud89 crud89 added this to the Alpha #05 milestone Sep 24, 2025
@crud89 crud89 self-assigned this Sep 24, 2025
@crud89 crud89 added this to LiteFX Sep 24, 2025
@crud89 crud89 added Vulkan πŸŒ‹ The issue involves the Vulkan backend. DX12 ❎ The issue involves the DX12 backend. labels Sep 24, 2025
@crud89 crud89 moved this to In Progress in LiteFX Sep 24, 2025
@crud89
Copy link
Copy Markdown
Owner Author

crud89 commented Sep 25, 2025

Run: checks

@crud89
Copy link
Copy Markdown
Owner Author

crud89 commented Sep 25, 2025

Tests currently fail, because this PR removes the static constant that initializes the descriptor count for the unbounded array in the ray-tracing test. This is problem will be addressed with a future PR targeting #167. I'll merge this anyway in the meantime.

@crud89 crud89 merged commit 8459701 into main Sep 25, 2025
7 of 9 checks passed
@crud89 crud89 deleted the explicit-unbounded-arrays branch September 25, 2025 16:52
@crud89 crud89 moved this from In Progress to v0.5.1 in LiteFX Sep 25, 2025
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.5.1

Development

Successfully merging this pull request may close these issues.

1 participant