Skip to content

Unused struct definition is not dropped #520

@LJ1102

Description

@LJ1102

When I optimized my shader I eventually optimized out the usage of a struct but forgot about the definition, later I found out that the definition remained in the minified shader source, despite not being used anywhere.

Reproducible test case (in web version).

struct Test { float A, B; } T;
void main(){
    gl_FragColor=vec4(1,0,0,1);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions