Skip to content

Conversation

@Firestar99
Copy link
Member

@Firestar99 Firestar99 commented Dec 17, 2025

Requires #484

Supersedes #311

Refactors the target declaration within rustc_codegen_spirv to no longer be dependent on the spirv_tools::TargetEnv enum, but a custom representation within rustc_codegen_spirv itself. The new enum SpirvTarget first splits into "types of targets", like VulkanTarget, UniversalTarget and OpenGLTarget, which can represent arbitrary versions of e.g. Vulkan. This is heavily inspired by @eddyb's feedback in #311 (comment). Also see #484 refactoring spirv-builder's target declaration to not do any target validation, but leave that to the codegen backend aka this PR.

This is a prerequisite for adding naga transpilation targets in the followup PR #493. And opens up the path to make the spirv-tools dependency optional.

This was referenced Dec 17, 2025
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.

2 participants