Skip to content

Mention somewhere that the latest commit should be used #479

Open

Description

@Supreeeme

In the initial crate setup as mentioned in the book, it tells you to setup spirv_builder by adding the 0.9 version to your Cargo.toml: https://rust-gpu.github.io/rust-gpu/book/writing-shader-crates.html#using-spirv-builder

This of course does not work because the last spirv_builder release is ancient. In fact, the rust-toochain.toml mentioned immediately before this does not match the one from spirv_builder so upon doing this the crate won't even compile. This is easy enough to fix:

[build-dependencies]
# maybe use a commit if you need some semblance of stability
spirv-builder = { git = "https://github.com/Rust-GPU/rust-gpu", revision = "master" }

Figuring this out however was challenging. I feel like this should be mentioned somewhere in this section of the book.

Activity

  1. Firestar99 commented on Dec 7, 2025

    @Firestar99
    Member

    I'm currently completely revamping the book, but haven't gotten very far: #191 (comment)

    Also made a new example repo this week with ideomatic rust-gpu examples: #473 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions