Skip to content

shaders cleanup #1039

@rukai

Description

@rukai

Once #947 is merged then, there a bunch of work I want to do on the vulkano-shaders/vulkano-shader-derive crates, in terms of updating dependencies and cleaning things up. So figured I would list my plans here:

  1. delete fn build_glsl (it was used for pre proc-macros) done
  2. deprecate glsl-to-spirv (change readme + publish) done
  3. upgrade to proc_macro2 done
  4. use proc_macro instead of proc_macro_derive done
  5. deprecate vulkano-shaders-derive (change readme + publish) done
  6. change panics to errors as per the syn lazy-static example - ensure this fixes Format SPIR-V Cross-Compilation Errors #345, its currently caused by unwrapping the Result<CompilationArtifact, String>
  7. Use spans properly to report where errors occur.
  8. Pass file names to the input_file_name argument. Filename will be either:
    • *.glsl
    • *.rs (embedded)
  9. Display shaderc-rs warnings as proc macro warnings Show warnings generated by glslang #117
  10. Change vulkano_shaders! to have the glsl specified as tokens rather then a string. Some discussion at vulkano-shaders - proc macros 2.0 #1062
  11. Map shaderc errors back to the glsl token spans to generate better errors.
  12. Replace vulkano-shaders/src/parse.rs with rspirv stuff Replace vulkano-shaders parser with rspirv #910

6,7,9,10,11 are waiting on proc macro diagnostics to stabilize rust-lang/rust#54140

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions