Skip to content

Bindings fail to parse 1u32 #356

@Firestar99

Description

@Firestar99

Defining bindings (or potentially others) should parse 1u32 style integer literals correctly. This is important in proc macros, since quote! always adds the type to the end of an integer. Either we use LitInt from syn or IntegerLit from litrs.

error: attribute value must be integer
    --> node-graph/graster-nodes/src/adjustments.rs:58:31
     |
  58 |         #[spirv(descriptor_set = 0, binding = 1u32)] image_input: Image2d,
     |                                     ^^^^^^^^^^^^^^

System Info

  • rust-gpu master

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions