ingowald / optix7course

Apache License 2.0
452 stars 80 forks source link

fix example11 denoiserOptions error #4

Closed Zachary-Zuo closed 4 years ago

Zachary-Zuo commented 4 years ago

'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.

ingowald commented 4 years ago

Thank you! Here goes my "it was so little change i feel i don't need to test it" :-). Thanks!