proc nextPass*(self: Material): Material {.gcsafe, locks: 0.}
proc `nextPass =`*(self: Material; val: Material) {.gcsafe, locks: 0.}