I am building a 3d renderer in C++ using Vulkan. I am in the process of implementing…
- User
I am building a 3d renderer in C++ using Vulkan. I am in the process of implementing point shadows, using a geometry shader to produce a cubemap of the resulting shadow. I have created the relevant shaders and am trying to incorporate them into my rendering processes. However, I am running into an error that indicates Geometry Shader is not supported and geometryShader feature is not enabled. Do I need to somehow enable geometry shaders at some point in my rendering process before I can use them?
- Assistant
Yes, in order to use geometry shaders in Vulkan, you need to enable the appropriate feature when you create your Vulkan device. Geometry shaders are part of the Vulkan API, but their support has to be explicitly requested because not all devices or drivers may support them.