I’m building a video game engine using C++ as the coding language and Vulkan for…
- User
I’m building a video game engine using C++ as the coding language and Vulkan for graphics. I am trying to set up a generic renderer using Vulkan that is flexible and will render objects based on a vector that is supplied to it. The renderer will also handle the creation of the window using GLFW and use GLM for all relevant math calls. What classes would I need to setup for this renderer?
- Assistant
Here are some classes that you may need to set up for your renderer:
-
Window: This class will handle the creation and management of the application window through GLFW.
-
GraphicsDevice: This class will handle the creation and management of the Vulkan device, instance, and physical device.
-
Shader: This class will encapsulate Vulkan shader loading and will handle assigning shaders to pipeline stages.
-
DescriptorSetLayout: This class defines the layout of the descriptor set, which describes the binding points of resources such as buffers and textures.
-
GraphicsPipeline: This class will contain information about the graphics pipeline and the number of pipeline stages involved.
-
VertexBuffer: This class will hold the vertex data that will be rendered.
-
IndexBuffer: This class will hold the index data that will be rendered.
-
Texture: This class will contain texture data that will be used in rendering.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.