Skip to content

Validate and offset descriptor indices when binding image and sampler arrays.#159

Merged
crud89 merged 2 commits intomainfrom
fix-descriptor-array-mapping
Sep 10, 2025
Merged

Validate and offset descriptor indices when binding image and sampler arrays.#159
crud89 merged 2 commits intomainfrom
fix-descriptor-array-mapping

Conversation

@crud89
Copy link
Copy Markdown
Owner

@crud89 crud89 commented Sep 10, 2025

Describe the pull request

This resolves an issue where sampler and image arrays are not properly bound. This happend because the index to the first descriptor was not correctly offset. This PR validates if the target descriptor is valid for a descriptor array at a specific binding and properly computes the descriptor offset before copying the desriptor to the global heap(s).

Unfortunately no test for this issue is implemented, as this does neither trigger the validation layer, nor any state changes in the engine itself.

Related issues

Fixes #154

@crud89 crud89 added this to the Alpha #05 milestone Sep 10, 2025
@crud89 crud89 self-assigned this Sep 10, 2025
@crud89 crud89 added this to LiteFX Sep 10, 2025
@crud89 crud89 added Bug 🐞 Something isn't working. DX12 ❎ The issue involves the DX12 backend. labels Sep 10, 2025
@crud89 crud89 moved this to In Progress in LiteFX Sep 10, 2025
@crud89
Copy link
Copy Markdown
Owner Author

crud89 commented Sep 10, 2025

Run: checks

@crud89 crud89 merged commit 892cf9c into main Sep 10, 2025
9 checks passed
@crud89 crud89 deleted the fix-descriptor-array-mapping branch September 10, 2025 13:08
@crud89 crud89 moved this from In Progress to v0.5.1 in LiteFX Sep 10, 2025
crud89 added a commit that referenced this pull request Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug 🐞 Something isn't working. DX12 ❎ The issue involves the DX12 backend.

Projects

Status: v0.5.1

Development

Successfully merging this pull request may close these issues.

Fixed descriptor arrays are not properly mapped.

1 participant