glsl icon indicating copy to clipboard operation
glsl copied to clipboard

Docs don't show all features

Open dhardy opened this issue 6 years ago • 3 comments

The SPIR-V transpiler doesn't show up in the docs.

You probably want this in your Cargo.toml:

[package.metadata.docs.rs]
all-features = true

It would also be nice to see a transpiling example included in the docs.

dhardy avatar Jan 18 '20 12:01 dhardy

Hello,

Yes, currently, it doesn’t show up because I don’t really know whether the glsl crate is a good place to put such a transpiler in. glsl -> glsl is trivial so it’s okay to have it there, but for anything else, I’m quite not sure. What do you think?

hadronized avatar Jan 18 '20 19:01 hadronized

I don't know. I was just looking for a GLSL → SPIR-V compiler since the glsl-to-spirv is deprecated and was wondering if there was a pure-Rust solution — but I see you use shaderc anyway.

dhardy avatar Jan 19 '20 09:01 dhardy

So far, yes. But the goal is to use pure Rust. I haven’t spent the time to write a semantic analysis phase but IIRC @jrmuizel has information about that.

hadronized avatar Jan 19 '20 20:01 hadronized