|
When `pipelineBinaryInternalCache` is supported it is possible to create pipeline binaries using just the pipeline create info, without providing either SPIR-V or binary data, by |
"it is possible to create pipeline binaries using just the pipeline create info, without providing either SPIR-V or binary data"
The example uses an empty VkGraphicsPipelineCreateInfo. Presumably the create info would be filled out, but I think this example is unclear because there is no valid way to provide a key without also providing the binary data, so the key is not a substitute for a module identifier in this case, and there is no way to just probe the internal cache for the presence of specific keys (or sets of keys).
I think the only way that feature works is with VK_EXT_shader_module_identifier? I think it would be helpful to elaborate that.
(It sure would be nice if there was a way to just do this by passing a list of keys, since they are supposed to be unique identifiers, but the spec doesn't currently permit that.)
Vulkan-Docs/proposals/VK_KHR_pipeline_binary.adoc
Line 261 in 98b6c43
"it is possible to create pipeline binaries using just the pipeline create info, without providing either SPIR-V or binary data"
The example uses an empty VkGraphicsPipelineCreateInfo. Presumably the create info would be filled out, but I think this example is unclear because there is no valid way to provide a key without also providing the binary data, so the key is not a substitute for a module identifier in this case, and there is no way to just probe the internal cache for the presence of specific keys (or sets of keys).
I think the only way that feature works is with VK_EXT_shader_module_identifier? I think it would be helpful to elaborate that.
(It sure would be nice if there was a way to just do this by passing a list of keys, since they are supposed to be unique identifiers, but the spec doesn't currently permit that.)