Class for point light system. More...
#include <PointLightSystem.hpp>
Public Member Functions | |
PointLightSystem (Device &device, VkRenderPass renderPass, VkDescriptorSetLayout globalSetLayout) | |
~PointLightSystem () | |
PointLightSystem (const PointLightSystem &)=delete | |
PointLightSystem & | operator= (const PointLightSystem &)=delete |
void | render (const FrameInfo &frameInfo) const |
Static Public Member Functions | |
static void | update (const FrameInfo &frameInfo, GlobalUbo &ubo) |
Private Member Functions | |
void | createPipelineLayout (VkDescriptorSetLayout globalSetLayout) |
void | createPipeline (VkRenderPass renderPass) |
Private Attributes | |
Device & | m_device |
std::unique_ptr< Shaders > | m_shaders |
VkPipelineLayout | m_pipelineLayout {nullptr} |
Class for point light system.
Definition at line 22 of file PointLightSystem.hpp.
|
explicit |
Definition at line 15 of file pointLightSystem.cpp.
References createPipeline(), and createPipelineLayout().
|
inline |
Definition at line 27 of file PointLightSystem.hpp.
References ven::Device::device(), m_device, and m_pipelineLayout.
|
delete |
|
private |
Definition at line 42 of file pointLightSystem.cpp.
References ven::Shaders::defaultPipelineConfigInfo(), and ven::SHADERS_BIN_PATH.
Referenced by PointLightSystem().
|
private |
Definition at line 21 of file pointLightSystem.cpp.
Referenced by PointLightSystem().
|
delete |
void ven::PointLightSystem::render | ( | const FrameInfo & | frameInfo | ) | const |
Definition at line 53 of file pointLightSystem.cpp.
References ven::FrameInfo::commandBuffer, ven::FrameInfo::globalDescriptorSet, ven::FrameInfo::objects, and PointLightPushConstants::position.
Referenced by ven::Engine::mainLoop().
Definition at line 73 of file pointLightSystem.cpp.
References ven::FrameInfo::frameTime, ven::MAX_LIGHTS, ven::GlobalUbo::numLights, ven::FrameInfo::objects, and ven::GlobalUbo::pointLights.
Referenced by ven::Engine::mainLoop().
|
private |
Definition at line 40 of file PointLightSystem.hpp.
Referenced by ~PointLightSystem().
|
private |
Definition at line 43 of file PointLightSystem.hpp.
Referenced by ~PointLightSystem().
|
private |
Definition at line 42 of file PointLightSystem.hpp.