gameknife / gkNextRenderer

A Realtime PathTracer
50 stars 4 forks source link

use #ifdef __cplusplus #77

Closed tigrazone closed 2 months ago

tigrazone commented 2 months ago

it is better than https://github.com/gameknife/gkNextRenderer/blob/412cb9d61fcff27f074eff9079cf349eb9692f78/assets/shaders/common/UniformBufferObject.glsl#L1

idea from nvpro-samples/vk_raytrace/shaders/compress.glsl

gameknife commented 2 months ago

great! fixed in https://github.com/gameknife/gkNextRenderer/commit/c098f45dedf25b4256b18ec9856ae8b546288414