Skip to content

Conversation

@luciechoi
Copy link
Collaborator

Fixes #7699.

Previously, only asdouble(uint, uint) and asdouble(uint2, uint2) were supported.

The fix is to manually extract each component and compose a vector of doubles.

Verified asdouble.32.test is passing.

@luciechoi luciechoi changed the title Support asdouble() for uint3 argument type. [SPIR-V] Support asdouble() for uint3 argument type. Dec 3, 2025
@luciechoi
Copy link
Collaborator Author

@s-perron

@luciechoi luciechoi requested a review from s-perron December 9, 2025 14:48
Copy link
Collaborator

@s-perron s-perron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code sequence you are generating is a little verbose. Also, do we have to handle 4 element vectors as well? I think you code will handle it, but the comments do not indicate that.

If we do, we should add a test for it.

@luciechoi luciechoi requested a review from s-perron December 15, 2025 06:41
@s-perron
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@s-perron s-perron enabled auto-merge (squash) December 15, 2025 22:40
@s-perron s-perron merged commit 23a15c5 into microsoft:main Dec 16, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[SPIR-V] Hitting assert when compiling program with asdouble

2 participants