I try to create a module from a ptx which includes many kernels for multiple pipelines. Each pipeline’s requirement for payload/attribute size are different. In this case the current OptiX seem not to allow me to create a module with payload/attribute size smaller than the maximum size used in the ptx even if I don’t use a kernel with the maximum size in the final pipeline.
The error is:
Error: Requested 4 payload values in optixSetPayload but only 3 are configured in the pipeline
Is there any way to avoid this restriction?
This is maybe rather a potential request than a question.
If so my request will be:
Is it possible to defer the above error evaluation to when linking a pipeline instead of when creating a module?
Or is there some reason that that evaluation should be here?
It seems possible to generate multiple pipelines with different payload/attribute size from single DXIL library with DXR (while I’m not sure how correspondence between OptiX’ and DXR’ objects is.)