Currently, ShaderTableDesc::program is not used. In fact, the same ShaderTable can be used with pipelines from different programs as the actual backing SBT is created lazily for a specific pipeline. This works as long as the pipeline contains the required entrypoints. This can be desired or not, but we should make a decision. One advantage for having the program specified is that it would allow the validation layer to check that the program contains all the required entrypoints. On the other hand, it might be handy to allow the same shader table to be used for different pipelines as long as they provide all entrypoints required.
Currently,
ShaderTableDesc::programis not used. In fact, the sameShaderTablecan be used with pipelines from different programs as the actual backing SBT is created lazily for a specific pipeline. This works as long as the pipeline contains the required entrypoints. This can be desired or not, but we should make a decision. One advantage for having theprogramspecified is that it would allow the validation layer to check that the program contains all the required entrypoints. On the other hand, it might be handy to allow the same shader table to be used for different pipelines as long as they provide all entrypoints required.