8000 renaming behavior creates broken code · Issue #150 · glslify/glslify · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
renaming behavior creates broken code #150
Open
@HunterLarco

Description

@HunterLarco

Example

foo.glsl

struct Foo {
  ...
};

uint doFoo(in Foo foo) { ... }

bar.glsl

#pragma glslify: doFoo = require('./foo.glsl')

The resulting code for bar.glsl when run through glslify is

struct Foo_0 {
  ...
};

uint doFoo_0(in Foo foo) { ... }

Expected Result

struct Foo_0 {
  ...
};

uint doFoo_0(in Foo_0 foo) { ... }

Observed Result

The generated code is broken due to renaming only the exported struct and not uses within the same file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0