Repository navigation
[TEST-189] Fix descriptor test compilation with clang-cl - #1323
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
Conversation
Contributor
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): pass. |
Contributor
|
Tested
|
Contributor
|
Tested 3974555 on RTX 4090 (driver 621.14), Windows 11 26200, MSVC 19.44: pass (no regression against main).
The |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes TEST-189 from the coordination issue.
std::size(array)directly in these enum initializers triggers Clang's reference-to-local error. Compute each array size in a namedconstexprbefore the enum, keeping the slot layout derived from the fixture arrays.Checks:
-std=c++20 -fsyntax-onlypasses for the exact local-array/enum pattern; the baseline form fails with the reference-to-local diagnostic.git diff --checkpasses.ID3D12Device11andD3D12_SAMPLER_DESC2. This compile-only fix needs no GPU or game files.