bevyengine/naga_oil

"//" in import declarations are incorrectly recognized as comments

infmagic2047 opened this issue · 0 comments

Consider this piece of shader code:

#import "embedded://path/to/shader.wgsl"::foo

Currently, naga_oil recognizes the "//" part of the import path as comments and replaces the line with #import "embedded:, so this import declaration becomes invalid. This breaks shader import in Bevy with asset sources.