![]() |
Kale
|
#include <GraphicsPipeline.hpp>
Public Member Functions | |
GraphicsPipeline () | |
GraphicsPipeline (const std::string &vert, const std::string &frag, const Renderer &renderer) | |
void | init (const std::string &vert, const std::string &frag, const Renderer &renderer) |
void | freeResources (bool remove=true) override |
Public Attributes | |
vk::UniquePipeline | pipeline |
vk::UniquePipelineLayout | layout |
Private Member Functions | |
void | createPipelineLayout () |
Additional Inherited Members | |
![]() | |
ChildResource () | |
ChildResource (SwapChain &parent) | |
virtual void | init (SwapChain &parent) |
~ChildResource () | |
![]() | |
SwapChain * | parentPtr |
Represents the vulkan graphics pipeline
Definition at line 34 of file GraphicsPipeline.hpp.
GraphicsPipeline::GraphicsPipeline | ( | ) |
Creates an uninitialized graphics pipeline
Definition at line 34 of file GraphicsPipeline.cpp.
GraphicsPipeline::GraphicsPipeline | ( | const std::string & | vert, |
const std::string & | frag, | ||
const Renderer & | renderer ) |
Creates the graphics pipeline given the required shaders
vert | The filename of the vertex shader (the assets/shaders/ path is prepended automatically) |
frag | The filename of the fragment shader (the assets/shaders/ path is prepended automatically) |
renderer | The renderer this graphics pipeline will render to |
Sets up the graphics pipeline
vert | The vertex shader filename (the assets/shaders/ path is prepended automatically) |
frag | The fragment shader filename (the assets/shaders/ path is prepended automatically) |
renderer | The renderer this graphics pipeline will render to |
Definition at line 44 of file GraphicsPipeline.cpp.
|
private |
Creates the pipeline layout
Definition at line 51 of file GraphicsPipeline.cpp.
|
overridevirtual |
Frees resources if not already freed
Reimplemented from Kale::Vulkan::ChildResource< SwapChain >.
Definition at line 129 of file GraphicsPipeline.cpp.
void GraphicsPipeline::init | ( | const std::string & | vert, |
const std::string & | frag, | ||
const Renderer & | renderer ) |
Sets up the graphics pipeline
vert | The vertex shader filename (the assets/shaders/ path is prepended automatically) |
frag | The fragment shader filename (the assets/shaders/ path is prepended automatically) |
renderer | The renderer this graphics pipeline will render to |
Definition at line 62 of file GraphicsPipeline.cpp.
vk::UniquePipelineLayout Kale::Vulkan::GraphicsPipeline::layout |
The pipeline layout
Definition at line 52 of file GraphicsPipeline.hpp.
vk::UniquePipeline Kale::Vulkan::GraphicsPipeline::pipeline |
The graphics pipeline
Definition at line 47 of file GraphicsPipeline.hpp.