VkCV Framework  0.0.1
CV Vulkan framework
ShaderProgram.cpp File Reference

ShaderProgram class to handle and prepare the shader stages for a graphics pipeline. More...

#include "vkcv/ShaderProgram.hpp"
#include "vkcv/Logger.hpp"
Include dependency graph for ShaderProgram.cpp:

Go to the source code of this file.

Functions

std::vector< char > vkcv::readShaderCode (const std::filesystem::path &shaderPath)
 
VertexAttachmentFormat vkcv::convertFormat (spirv_cross::SPIRType::BaseType basetype, uint32_t vecsize)
 

Detailed Description

ShaderProgram class to handle and prepare the shader stages for a graphics pipeline.

Authors
Simeon Hermann, Leonie Franken

Definition in file ShaderProgram.cpp.

Function Documentation

◆ readShaderCode()

std::vector<char> vkcv::readShaderCode ( const std::filesystem::path &  shaderPath)

Reads the file of a given shader code. Only used within the class.

Parameters
[in]relativepath to the shader code
Returns
vector of chars as a buffer for the code

References vkcv::readShaderCode().

Referenced by vkcv::readShaderCode().

Here is the call graph for this function:
Here is the caller graph for this function: