Shader objects

Where the device has VK_EXT_shader_object (setting vk_ext_shader_object, issue #1454), a draw makes no pipeline and no parts. src/nx/gpu/vk/shader_objects.c gives each key a set of shader objects: one for each stage's program, made once on the pipeline workers and shared by every key that runs the program with the same set layouts and fragment specialization. The recording thread binds the set (vk_pipeline_bind) and sets, as dynamic state, what a pipeline held (vk_so_bind). render.c sets the rest as for a pipeline, pr_dynamic too, so the path needs the dynamic pre-rasterization state of this design and the vertex layout as dynamic state.

vulkan_headless_shader_objects runs every check with them under the validation layer. The pipeline tests above pass --vk-ext-shader-object=off.


Made from docs/layers/gpu/pipeline-libraries.md at 69237645142c. GPL-3.0-or-later.