cargo-wgsl icon indicating copy to clipboard operation
cargo-wgsl copied to clipboard

Support/ignore `naga-oil`/preprocessor directives

Open griffi-gh opened this issue 11 months ago • 2 comments

directives like #import bevy_pbr::mesh_vertex_output MeshVertexOutput currently cause errors which is extremely annoying!

griffi-gh avatar Aug 31 '23 16:08 griffi-gh

@PolyMeilex would you accept a PR for this? naga_oil is much easier to integrate into cargo-wgsl (and vscode-wgsl) than into wgsl-analyzer, and it would be nice if there was some solution for users of bevy 0.12

jakobhellermann avatar Nov 10 '23 14:11 jakobhellermann

@PolyMeilex would you accept a PR for this? naga_oil is much easier to integrate into cargo-wgsl (and vscode-wgsl) than into wgsl-analyzer, and it would be nice if there was some solution for users of bevy 0.12

Yep, I'm totally fine with it

PolyMeilex avatar Nov 10 '23 16:11 PolyMeilex