Using signed or unsigned integer formats/layouts requires that "uimage" or "iimage" are used.
Unified · Split
| @@ -2005,8 +2005,21 @@ print: · 2004 unmodified lines | |||
| 2005 | if (prop->mem_quali && desc[i].mem_quali) | 2005 | if (prop->mem_quali && desc[i].mem_quali) |
| 2006 | GLSLA(" %s", desc[i].mem_quali); | 2006 | GLSLA(" %s", desc[i].mem_quali); |
| 2007 | 2007 | ||
| 2008 | if (prop->type) | 2008 | if (prop->type) { |
| 2009 | GLSLA(" %s", prop->type); | 2009 | GLSLA(" "); |
| 2010 | if (desc[i].type == VK_DESCRIPTOR_TYPE_STORAGE_IMAGE) { | ||
| 2011 | if (desc[i].mem_layout) { | ||
| 2012 | int len = strlen(desc[i].mem_layout); | ||
| 2013 | if (desc[i].mem_layout[len - 1] == 'i' && | ||
| 2014 | desc[i].mem_layout[len - 2] == 'u') { | ||
| 2015 | GLSLA("u"); | ||
| 2016 | } else if (desc[i].mem_layout[len - 1] == 'i') { | ||
| 2017 | GLSLA("i"); | ||
| 2018 | } | ||
| 2019 | } | ||
| 2020 | } | ||
| 2021 | GLSLA("%s", prop->type); | ||
| 2022 | } | ||
| 2010 | 2023 | ||
| 2011 | if (prop->dim_needed) | 2024 | if (prop->dim_needed) |
| 2012 | GLSLA("%iD", desc[i].dimensions); | 2025 | GLSLA("%iD", desc[i].dimensions); |