Skip to content

Add error details to SpirvBuilderError::BuildError #208

Closed
Rust-GPU/cargo-gpu
#69
@tombh

Description

@tombh

I've just come across a need in cargo-gpu to get the exact nature of the shader build failure. Namely that there is an edge case where downgrading spirv-std can cross a Rust toolchain threshold that also changes the manifest version in the shader's Cargo.lock. It'd be good to detect that error and advise the user to just delete the Cargo.lock and rebuild.

I think this would be a breaking change in the API?

I think there'd also be a way to achieve this by parsing the spirv-builder STDERR stream, but that's a bit cumbersome.

I'd be happy to look into adding this.

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