'pixelFormat' only exist in 7.0 but 'inputKind' both in 7.0 and 7.1. If ‘denoiserOptions.inputKind’ is modified under the conditional branch when OPTIX_VERSION=70100, will make the ‘denoiserOptions’ input empty, causing an error. So I put the statement modified for ‘denoiserOptions.inputKind’ outside the conditional branch.
'pixelFormat' only exist in 7.0 but 'inputKind' both in 7.0 and 7.1. If ‘denoiserOptions.inputKind’ is modified under the conditional branch when OPTIX_VERSION=70100, will make the ‘denoiserOptions’ input empty, causing an error. So I put the statement modified for ‘denoiserOptions.inputKind’ outside the conditional branch.