Skip to content

[dawn] Enable tint spirv generation support when building dawn with vulkan#50977

Merged
vicroms merged 4 commits into
microsoft:masterfrom
tstraus:dawn_spirv_for_vulkan
Apr 8, 2026
Merged

[dawn] Enable tint spirv generation support when building dawn with vulkan#50977
vicroms merged 4 commits into
microsoft:masterfrom
tstraus:dawn_spirv_for_vulkan

Conversation

@tstraus
Copy link
Copy Markdown
Contributor

@tstraus tstraus commented Apr 5, 2026

When using dawn with a vulkan backend, it fails to compile wgsl shaders as it's compiled with a tint that does not have the spirv generation feature enabled.

This PR enables that spirv generation feature when the vulkan feature of dawn is enabled.

@tstraus tstraus changed the title [dawn] Enable tint spirv support when building dawn with vulkan [dawn] Enable tint spirv generation support when building dawn with vulkan Apr 6, 2026
Comment thread ports/dawn/portfile.cmake
set(DAWN_USE_BUILT_DXC ON)
endif()
set(DAWN_USE_TINT_SPV OFF)
if(DAWN_ENABLE_VULKAN)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this only depend on vulkan, or is it also coupled to tint or other dependencies?

Suggested change
if(DAWN_ENABLE_VULKAN)
if(DAWN_ENABLE_VULKAN AND "tint" IN_LIST FEATURES)

(I don't know. I just see the name of the tint feature.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Tint the library is always built, the feature for command line tools for tint.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@tstraus is right.
Maybe we should rename tint feature to tint-tools?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I would be for that. It honestly threw me for a bit while trying to figure out what was going on with this.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of tint-tools, it might also be simply tools. IDK.
Anyways, it looks like a topic for another PR.

@vicroms vicroms merged commit 8882794 into microsoft:master Apr 8, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants