Skip to content

Automatically build shaders #2

Open
@ian-h-chamberlain

Description

@ian-h-chamberlain

Similar to the cc-rs crate, it would be nice to compile shaders automatically in one of these ways:

  • build script helper crate (probably looks very similar to cc-rs in practice)

    • include_bytes!(concat!(env!("OUT_DIR"), "/shader.shbin")) ? looks kinda messy but would work

    • somehow include built shader bin in romfs – maybe hard link / symlink can do this?

  • Proc macro? Basically would run the shader compiler and spit out bytes... probably would increase compile time poorly

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