6#ifndef INCLUDE_VULKANENGINE_SHADERMODULE_H_
7#define INCLUDE_VULKANENGINE_SHADERMODULE_H_
12#include <vulkan/vulkan.hpp>
24 ShaderModule(
const std::string& shader_string,
bool is_filepath,
25 vk::ShaderStageFlagBits shader_stage_flag);
40 std::vector<uint32_t> readSource(std::filesystem::path file_path);
45 std::vector<uint32_t> glslToSPIRV(
const std::string& name,
46 const std::string& shader_string);
49 vk::ShaderModule vk_shader_module;
52 vk::ShaderStageFlagBits vk_shader_stage_flag;
54 static bool glslang_initialized;
Definition: ShaderModule.h:18
~ShaderModule()
Destructor.
Definition: ShaderModule.cpp:69
const vk::ShaderModule & getVkShaderModule() const
Definition: ShaderModule.cpp:79
const vk::ShaderStageFlagBits getVkShaderStageFlag() const
Definition: ShaderModule.cpp:74
TODO development of this class is in progress.
Definition: Attribute.h:13