Skip to content

[SPIR-V] Support asdouble() for uint3 argument type. - #7965

Merged
Steven Perron (s-perron) merged 2 commits into
microsoft:mainfrom
luciechoi:asdouble
Dec 16, 2025
Merged

Steven Perron (s-perron) merged 2 commits into
microsoft:mainfrom
luciechoi:asdouble

Conversation

@luciechoi

Copy link
Copy Markdown
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 Lucie Choi (luciechoi) changed the title Support asdouble() for uint3 argument type. [SPIR-V] Support asdouble() for uint3 argument type. Dec 3, 2025
@luciechoi

Copy link
Copy Markdown
Collaborator Author

@s-perron Steven Perron (s-perron) left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread tools/clang/lib/SPIRV/SpirvEmitter.cpp Resolved
Comment thread tools/clang/lib/SPIRV/SpirvEmitter.cpp Resolved
@s-perron

Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@s-perron
Steven Perron (s-perron) merged commit 23a15c5 into microsoft:main Dec 16, 2025
@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

Archived in project

Development

Successfully merging this pull request may close these issues.

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

2 participants