grovesNL / spirv_cross

Safe Rust wrapper around SPIRV-Cross
Apache License 2.0
86 stars 42 forks source link

Support overriding the default entry point #155

Closed msiglreith closed 4 years ago

msiglreith commented 4 years ago

This is required for dx12 to support SPIR-V modules with multiple entrypoints and non-main entrypoints

grovesNL commented 4 years ago

Is this different than providing it in the recently added entry_point field in CompilerOptions? https://github.com/grovesNL/spirv_cross/blob/a02b721e84817ca44b8626cf224b3ec54b9b556c/spirv_cross/src/hlsl.rs#L79-L81

In the HLSL tests there's an example that already contains entry points named main_vs and main_fs, so it seems like this should already work?

msiglreith commented 4 years ago

nope, just saw it 😅