Automatically detect best mode. This is the default.
``lazy``
Disable caching and attempt to use the least amount of CPU.
+``cached``
+ Use caching to reuse descriptor sets.
``notemplates``
The same as `auto`, but disables the use of `VK_KHR_descriptor_templates`.
zink_descriptor_options[] = {
{ "auto", ZINK_DESCRIPTOR_MODE_AUTO, "Automatically detect best mode" },
{ "lazy", ZINK_DESCRIPTOR_MODE_LAZY, "Don't cache, do least amount of updates" },
+ { "cached", ZINK_DESCRIPTOR_MODE_CACHED, "Cache, reuse sets" },
{ "notemplates", ZINK_DESCRIPTOR_MODE_NOTEMPLATES, "Cache, but disable templated updates" },
DEBUG_NAMED_VALUE_END
};
screen->desc_set_id[ZINK_DESCRIPTOR_TYPE_IMAGE] = 4;
screen->desc_set_id[ZINK_DESCRIPTOR_BINDLESS] = 5;
}
+ if (descriptor_mode == ZINK_DESCRIPTOR_MODE_AUTO) {
+ descriptor_mode = ZINK_DESCRIPTOR_MODE_CACHED;
+ }
if (screen->info.have_EXT_calibrated_timestamps && !check_have_device_time(screen))
goto fail;
enum zink_descriptor_mode {
ZINK_DESCRIPTOR_MODE_AUTO,
ZINK_DESCRIPTOR_MODE_LAZY,
+ ZINK_DESCRIPTOR_MODE_CACHED,
ZINK_DESCRIPTOR_MODE_NOTEMPLATES,
ZINK_DESCRIPTOR_MODE_COMPACT,
};