I'm trying to invoke a macro like this:
pipeline_layout! {
set0: {
tiles: StorageBuffer<cs::ty::TileRead>,
tiles_in: StorageBuffer<cs::ty::TileDynamic>,
tiles_out: StorageBuffer<cs::ty::TileDynamic>
}
}
The call triggers the match here: https://github.com/tomaka/vulkano/blob/02ff4793266ecdd3cfa36cd30d981dff0c93e0fc/vulkano/src/descriptor/pipeline_layout/custom_pipeline_macro.rs#L24
...which should then invoke the same macro recursively here: https://github.com/tomaka/vulkano/blob/02ff4793266ecdd3cfa36cd30d981dff0c93e0fc/vulkano/src/descriptor/pipeline_layout/custom_pipeline_macro.rs#L85
The line above should expand to:
pipeline_layout!{__inner__ (0) set0: { tiles: StorageBuffer<cs::ty::TileRead>, tiles_in: StorageBuffer<cs::ty::TileDynamic>, tiles_out: StorageBuffer<cs::ty::TileDynamic> }}
... which should trigger the match right under: https://github.com/tomaka/vulkano/blob/02ff4793266ecdd3cfa36cd30d981dff0c93e0fc/vulkano/src/descriptor/pipeline_layout/custom_pipeline_macro.rs#L88
However this fails with the following compilation error:
src\descriptor\pipeline_layout\custom_pipeline_macro.rs:85:58: 85:59 error: expe
cted one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `tiles_in`
src\descriptor\pipeline_layout\custom_pipeline_macro.rs:85 pipeline_layo
ut!{__inner__ (0) $($name: {$($field: $ty),*})*}
^
For me the error doesn't make sense. Please help me fix it!