On Wed Jan 31 10:50:37 2024 +0000, Giovanni Mascellani wrote:
Nitpick, but this looks better to me:
if (resource->r.type == RESOURCE_TYPE_UAV) write.descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER; else write.descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER;
In many other places we set the defaults for SRVs and override them for UAVs, for instance in the "else" branch of the same `if (resource->r.dimension == RESOURCE_DIMENSION_BUFFER)` that contains this, so I thought on doing the same for consistency.