Skip to content
Snippets Groups Projects

Resolve "Pipeline State Object"

Merged Mark Oliver Mints requested to merge 11-pipeline-state-object into develop
5 files
+ 41
19
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 4
5
@@ -10,6 +10,7 @@
#include <vector>
#include <cstdint>
#include "vkcv/Handles.hpp"
#include "ShaderProgram.hpp"
namespace vkcv {
@@ -25,16 +26,14 @@ namespace vkcv {
* Constructor for the pipeline. Creates a pipeline using @p vertexCode, @p fragmentCode as well as the
* dimensions of the application window @p width and @p height. A handle for the Render Pass is also needed, @p passHandle.
*
* @param vertexCode Spir-V of Vertex Shader
* @param fragCode Spir-V of Fragment Shader
* @param shaderProgram shaders of the pipeline
* @param height height of the application window
* @param width width of the application window
* @param passHandle handle for Render Pass
*/
Pipeline(const std::vector<uint32_t> &vertexCode, const std::vector<uint32_t> &fragCode, uint32_t height, uint32_t width, RenderpassHandle &passHandle);
Pipeline(const ShaderProgram& shaderProgram, uint32_t width, uint32_t height, RenderpassHandle &passHandle);
std::vector<uint32_t> m_vertexCode;
std::vector<uint32_t> m_fragCode;
ShaderProgram m_shaderProgram;
uint32_t m_height;
uint32_t m_width;
RenderpassHandle m_passHandle;
Loading