Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/include/worldpass.h

23 lines
365 B
C
Raw Normal View History

2018-10-15 19:52:16 -04:00
#pragma once
#include <vulkan/vulkan.h>
class Renderer;
2018-10-16 08:49:25 -04:00
class World;
2018-10-15 19:52:16 -04:00
class WorldPass {
public:
WorldPass(Renderer& renderer);
2018-10-15 20:03:01 -04:00
~WorldPass();
2018-10-16 08:49:25 -04:00
void render(World& world, VkCommandBuffer commandBuffer);
2018-10-15 19:52:16 -04:00
private:
void createPipeline();
2018-10-16 08:49:25 -04:00
2018-10-15 19:52:16 -04:00
VkPipelineLayout pipelineLayout_ = nullptr;
VkPipeline pipeline_ = nullptr;
2018-10-16 08:49:25 -04:00
2018-10-15 19:52:16 -04:00
Renderer& renderer_;
};