Skip to content

Commit

Permalink
expose a field + revert back preprocess comment removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Oct 4, 2024
1 parent abef6aa commit 5151946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/compose/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ pub struct ImportDefinition {

#[derive(Debug, Clone)]
pub struct ImportDefWithOffset {
definition: ImportDefinition,
pub definition: ImportDefinition,
offset: usize,
}

Expand Down
4 changes: 1 addition & 3 deletions src/compose/preprocess.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ impl Preprocessor {

// this code broadly stolen from bevy_render::ShaderProcessor
let mut lines = shader_str.lines();
let mut lines = lines //.replace_comments()
.zip(shader_str.lines())
.peekable();
let mut lines = lines.replace_comments().zip(shader_str.lines()).peekable();

while let Some((mut line, original_line)) = lines.next() {
let mut output = false;
Expand Down

0 comments on commit 5151946

Please sign in to comment.