nvpro-samples / vk_raytracing_tutorial_KHR

Ray tracing examples and tutorials using VK_KHR_ray_tracing
Apache License 2.0
1.36k stars 143 forks source link

Shouldn't this be vkSS::eClosestHitKHR | vkSS::eAnyHitKHR instead? #8

Closed BattleAxeVR closed 4 years ago

BattleAxeVR commented 4 years ago

https://github.com/nvpro-samples/vk_raytracing_tutorial_KHR/blob/81c26d451fa7daefd585baf27433cbc1b65fa0dc/ray_tracing_gltf/hello_vulkan.cpp#L694

mklefrancois commented 4 years ago

Yes, thanks, I will fix this in the next update. Fortunately, they are aliased with NV.

BattleAxeVR commented 4 years ago

Yeah I figured, because the samples work with or without the fix locally. I'd do a sweep on the rest to make sure they're correct. Great repo BTW.

I modded the entire gltf sample to use base C Vulkan API because I don't like the HPP wrapper stuff, to my mind it's obfuscating parameters in extra layers of indirection for little benefit. But I've learned a lot (and found issues like these) by doing that. If I find any more I'll post'em here. There are a few other suggestions I'd make like renaming the graphics pipeline member vars vs postprocess pipeline explicitly, and not making duplicates of pointers by passing them by reference to their constructor instead of the various "setup" functions. But that's neither here nor there. I just think duplicated raw pointers are an anti-pattern in C++ land

mklefrancois commented 4 years ago

Thanks for the comments. The flags are fixed.