Skip to content

Unused shader inputs are getting eliminated since the latest release #722

@hrydgard

Description

@hrydgard

Somewhere between the rust-gpu .alpha.11 and .alpha.12 releases, it started entirely eliminating inputs like this:

#[spirv(push_constant)] _material: &Material,

if they are unused in the shader. This seems to be a bug.

(It's useful to keep the interface the same while developing a shader, sometimes you know you'll need an input but not right now)

Metadata

Metadata

Assignees

No one assigned

    Labels

    t: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions