nvpro-samples / gl_vk_meshlet_cadscene

This OpenGL/Vulkan sample illustrates the use of "mesh shaders" for rendering CAD models.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing NVMESHLET_VERTEX_ALIGNMENT and NVMESHLET_PRIM_ALIGNMENT defines

DaemonDave opened this issue · comments

Hello;
I compiled one Linux / Fedora 28 with HAS_OPENGL options not Vulkan and then the glsl shader compiler fails with missing values for NVMESHLET_VERTEX_ALIGNMENT and NVMESHLET_PRIM_ALIGNMENT.

Where would I find these values outside of nvmeshlet_utils.glsl? What should they be?

Thank you,

dave

They are defined in https://github.com/nvpro-samples/gl_vk_meshlet_cadscene/blob/master/config.h line 41/42.
The glsl compiler does not need to compile nvmeshlet_utils.glsl directly since it is included in other GLSL. And those file that include nvmeshlet_utils.glsl will also include the config.h.